Class ArchetypeAttributeInt
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttribute
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributeInt
-
public class ArchetypeAttributeInt extends ArchetypeAttribute
AnArchetypeAttributefor selecting integer values.
-
-
Field Summary
-
Fields inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
TEXTFIELD_COLUMNS
-
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributeInt(@NotNull java.lang.String archetypeAttributeName, @NotNull java.lang.String attributeName, @NotNull java.lang.String description, int inputLength, int minValue, int maxValue, int minCheckValue, int maxCheckValue)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxCheckValue()Returns the logical maximum allowed value.intgetMaxValue()Returns the maximum allowed value.intgetMinCheckValue()Returns the logical minimum allowed value.intgetMinValue()Returns the minimum allowed value.voidvisit(@NotNull ArchetypeAttributeVisitor visitor)Calls thevisit()function appropriate for this instance.-
Methods inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
getArchetypeAttributeName, getAttributeName, getDescription, getInputLength, toString
-
-
-
-
Constructor Detail
-
ArchetypeAttributeInt
public ArchetypeAttributeInt(@NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength, int minValue, int maxValue, int minCheckValue, int maxCheckValue)Creates a new instance.- Parameters:
archetypeAttributeName- the archetype attribute nameattributeName- the user interface attribute namedescription- the attribute's descriptioninputLength- the input length in characters for text input fieldsminValue- the absolute minimum allowed valuemaxValue- the absolute maximum allowed valueminCheckValue- the logical minimum allowed valuemaxCheckValue- the logical maximum allowed value
-
-
Method Detail
-
getMinValue
public int getMinValue()
Returns the minimum allowed value.- Returns:
- the minimum allowed value
-
getMaxValue
public int getMaxValue()
Returns the maximum allowed value.- Returns:
- the maximum allowed value
-
visit
public void visit(@NotNull @NotNull ArchetypeAttributeVisitor visitor)Description copied from class:ArchetypeAttributeCalls thevisit()function appropriate for this instance.- Specified by:
visitin classArchetypeAttribute- Parameters:
visitor- the visitor to call
-
getMinCheckValue
public int getMinCheckValue()
Returns the logical minimum allowed value.- Returns:
- the logical minimum allowed value
-
getMaxCheckValue
public int getMaxCheckValue()
Returns the logical maximum allowed value.- Returns:
- the logical maximum allowed value
-
-