Class AbstractArchetypeAttributeSpell
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttribute
-
- net.sf.gridarta.model.archetypetype.AbstractArchetypeAttributeSpell
-
- Direct Known Subclasses:
ArchetypeAttributeSpell,ArchetypeAttributeZSpell
public abstract class AbstractArchetypeAttributeSpell extends ArchetypeAttribute
Abstract base class forArchetypeAttributesfor spells.
-
-
Field Summary
-
Fields inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
TEXTFIELD_COLUMNS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractArchetypeAttributeSpell(@NotNull java.lang.String archetypeAttributeName, @NotNull java.lang.String attributeName, @NotNull java.lang.String description, int inputLength)Creates a new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfindSpellIndex(@NotNull Spells<NumberSpell> numberSpells, int number)Returns the spell index for a spell number.-
Methods inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
getArchetypeAttributeName, getAttributeName, getDescription, getInputLength, toString, visit
-
-
-
-
Constructor Detail
-
AbstractArchetypeAttributeSpell
protected AbstractArchetypeAttributeSpell(@NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength)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 fields
-
-
Method Detail
-
findSpellIndex
public static int findSpellIndex(@NotNull @NotNull Spells<NumberSpell> numberSpells, int number)Returns the spell index for a spell number.- Parameters:
numberSpells- the number spells to usenumber- the spell number- Returns:
- the spell index or
-1if not found
-
-