Gridarta Editor
net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec Class Reference

An ArchetypeAttribute for selecting boolean values having specific "true" and "false" values. More...

+ Inheritance diagram for net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec:
+ Collaboration diagram for net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec:

Public Member Functions

 ArchetypeAttributeBoolSpec (@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String trueValue, @NotNull final String falseValue)
 Creates a new instance. More...
 
String getFalseValue ()
 Returns the false value. More...
 
String getTrueValue ()
 Returns the true value. More...
 
void visit (@NotNull final ArchetypeAttributeVisitor visitor)
 Calls the. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.archetypetype.ArchetypeAttribute
String getArchetypeAttributeName ()
 Returns the archetype attribute name. More...
 
String getAttributeName ()
 Returns the user interface attribute name. More...
 
String getDescription ()
 Returns the attribute's description. More...
 
int getInputLength ()
 Returns the input length in characters for text input fields. More...
 
String toString ()
 

Private Attributes

final String falseValue
 The false value. More...
 
final String trueValue
 The true value. More...
 

Additional Inherited Members

- Static Public Attributes inherited from net.sf.gridarta.model.archetypetype.ArchetypeAttribute
static final int TEXTFIELD_COLUMNS = 18
 The width (columns) for input fields like textfields or JChooseBoxes. More...
 
- Protected Member Functions inherited from net.sf.gridarta.model.archetypetype.ArchetypeAttribute
 ArchetypeAttribute (@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
 Creates a new instance. More...
 

Detailed Description

An ArchetypeAttribute for selecting boolean values having specific "true" and "false" values.

Author
Andreas Vogl
Andreas Kirschbaum

Definition at line 30 of file ArchetypeAttributeBoolSpec.java.

Constructor & Destructor Documentation

◆ ArchetypeAttributeBoolSpec()

net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.ArchetypeAttributeBoolSpec ( @NotNull final String  archetypeAttributeName,
@NotNull final String  attributeName,
@NotNull final String  description,
final int  inputLength,
@NotNull final String  trueValue,
@NotNull final String  falseValue 
)

Creates a new instance.

Parameters
archetypeAttributeNamethe archetype attribute name
attributeNamethe user interface attribute name
descriptionthe attribute's description
inputLengththe input length in characters for text input fields
trueValuethe true value
falseValuethe false value

Definition at line 53 of file ArchetypeAttributeBoolSpec.java.

References net.sf.gridarta.model.archetypetype.ArchetypeAttribute.archetypeAttributeName, net.sf.gridarta.model.archetypetype.ArchetypeAttribute.attributeName, net.sf.gridarta.model.archetypetype.ArchetypeAttribute.description, net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.falseValue, net.sf.gridarta.model.archetypetype.ArchetypeAttribute.inputLength, and net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.trueValue.

Member Function Documentation

◆ getFalseValue()

String net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.getFalseValue ( )

Returns the false value.

Returns
the false value

Definition at line 73 of file ArchetypeAttributeBoolSpec.java.

References net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.falseValue.

◆ getTrueValue()

String net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.getTrueValue ( )

Returns the true value.

Returns
the true value

Definition at line 64 of file ArchetypeAttributeBoolSpec.java.

References net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.trueValue.

◆ visit()

void net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.visit ( @NotNull final ArchetypeAttributeVisitor  visitor)

Calls the.

function appropriate for this instance.

Parameters
visitorthe visitor to call

Reimplemented from net.sf.gridarta.model.archetypetype.ArchetypeAttribute.

Definition at line 78 of file ArchetypeAttributeBoolSpec.java.

Member Data Documentation

◆ falseValue

final String net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.falseValue
private

◆ trueValue

final String net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.trueValue
private

The documentation for this class was generated from the following file:
net.sf.gridarta.model.archetypetype.ArchetypeAttributeBoolSpec.visit
void visit(@NotNull final ArchetypeAttributeVisitor visitor)
Calls the.
Definition: ArchetypeAttributeBoolSpec.java:78