public abstract class ArchetypeAttribute
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TEXTFIELD_COLUMNS
The width (columns) for input fields like textfields or JChooseBoxes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ArchetypeAttribute(java.lang.String archetypeAttributeName,
java.lang.String attributeName,
java.lang.String description,
int inputLength)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArchetypeAttributeName()
Returns the archetype attribute name.
|
java.lang.String |
getAttributeName()
Returns the user interface attribute name.
|
java.lang.String |
getDescription()
Returns the attribute's description.
|
int |
getInputLength()
Returns the input length in characters for text input fields.
|
java.lang.String |
toString() |
abstract void |
visit(ArchetypeAttributeVisitor visitor)
Calls the
visit() function appropriate for this instance. |
public static final int TEXTFIELD_COLUMNS
protected ArchetypeAttribute(@NotNull
java.lang.String archetypeAttributeName,
@NotNull
java.lang.String attributeName,
@NotNull
java.lang.String description,
int inputLength)
archetypeAttributeName - the archetype attribute nameattributeName - the user interface attribute namedescription - the attribute's descriptioninputLength - the input length in characters for text input fields@NotNull public java.lang.String getArchetypeAttributeName()
@NotNull public java.lang.String getAttributeName()
@NotNull public java.lang.String getDescription()
public int getInputLength()
@NotNull public java.lang.String toString()
toString in class java.lang.Objectpublic abstract void visit(@NotNull
ArchetypeAttributeVisitor visitor)
visit() function appropriate for this instance.visitor - the visitor to call