intarsys runtime library

de.intarsys.tools.functor
Interface IDeclarationElement

All Superinterfaces:
IDeclaration
All Known Subinterfaces:
IArgumentDeclaration
All Known Implementing Classes:
ArgumentDeclaration, DeclarationElement

public interface IDeclarationElement
extends IDeclaration

A concrete named declaration. An IDeclarationElement may have optional modifiers, supporting fine tuning of its behavior.


Field Summary
static String MOD_TRANSIENT
           
 
Method Summary
 String getModifierString()
           
 String getName()
          An optional name for the declaration element.
 boolean hasModifier(String modifier)
          true if the declaration has the requested modifier.
 
Methods inherited from interface de.intarsys.tools.functor.IDeclaration
copy, getDeclarationContext, isBlock
 

Field Detail

MOD_TRANSIENT

static final String MOD_TRANSIENT
See Also:
Constant Field Values
Method Detail

getModifierString

String getModifierString()

getName

String getName()
An optional name for the declaration element.

Returns:
An optional name for the declaration element.

hasModifier

boolean hasModifier(String modifier)
true if the declaration has the requested modifier.

An implementation is free to support modifiers and define their respective semantics.

An example for a modifier may be "persistent" to indicate the implementation should store argument values to be able to present them again in a later call (in a wizard for example).

Parameters:
modifier - The modifier name.
Returns:
true if the declaration has the requested modifier.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.