net.sf.gridarta.model.archetypetype
public class TestArchetypeAttributeFactory extends Object implements ArchetypeAttributeFactory
ArchetypeAttributeFactory
suitable for unit tests.Constructor and Description |
---|
TestArchetypeAttributeFactory() |
Modifier and Type | Method and Description |
---|---|
ArchetypeAttribute |
newArchetypeAttributeAnimname(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "animname" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeBitmask(String archetypeAttributeName,
String attributeName,
String description,
int inputLength,
String bitmaskName)
Creates a new "bitmask" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeBool(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "bool" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeBoolSpec(String archetypeAttributeName,
String attributeName,
String description,
int inputLength,
String trueValue,
String falseValue)
Creates a new "bool spec" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeFacename(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "face name" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeFixed(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "fixed" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeFloat(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "float" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeInt(String archetypeAttributeName,
String attributeName,
String description,
int inputLength,
int minValue,
int maxValue,
int minCheckValue,
int maxCheckValue)
Creates a new "int" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeInvSpell(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "inv spell" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeInvSpellOptional(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "inv spell optional" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeList(String archetypeAttributeName,
String attributeName,
String description,
int inputLength,
String listName)
Creates a new "list" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeList2(String archetypeAttributeName,
String attributeName,
String description,
int inputLength,
String listName1,
String listName2)
Creates a new "list2" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeLong(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "long" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeMapPath(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "map path" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeScriptFile(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "script file" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeSpell(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "spell" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeString(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "string" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeText(String archetypeAttributeName,
String endingOld,
String attributeName,
String description,
int inputLength,
String fileExtension)
Creates a new "text" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeTreasure(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "treasure" archetype attribute.
|
ArchetypeAttribute |
newArchetypeAttributeZSpell(String archetypeAttributeName,
String attributeName,
String description,
int inputLength)
Creates a new "z-spell" archetype attribute.
|
public TestArchetypeAttributeFactory()
@NotNull public ArchetypeAttribute newArchetypeAttributeAnimname(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeAnimname
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeBitmask(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength, @NotNull String bitmaskName)
newArchetypeAttributeBitmask
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldsbitmaskName
- the bitmask name@NotNull public ArchetypeAttribute newArchetypeAttributeBool(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeBool
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeBoolSpec(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength, @NotNull String trueValue, @NotNull String falseValue)
newArchetypeAttributeBoolSpec
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldstrueValue
- the true valuefalseValue
- the false value@NotNull public ArchetypeAttribute newArchetypeAttributeFacename(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeFacename
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeFixed(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeFixed
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeFloat(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeFloat
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeInt(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength, int minValue, int maxValue, int minCheckValue, int maxCheckValue)
newArchetypeAttributeInt
in interface ArchetypeAttributeFactory
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@NotNull public ArchetypeAttribute newArchetypeAttributeInvSpell(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeInvSpell
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeInvSpellOptional(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeInvSpellOptional
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeList(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength, @NotNull String listName)
newArchetypeAttributeList
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldslistName
- the list name@NotNull public ArchetypeAttribute newArchetypeAttributeList2(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength, @NotNull String listName1, @NotNull String listName2)
newArchetypeAttributeList2
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldslistName1
- the list name for bits 0-3listName2
- the list name for bits 4+@NotNull public ArchetypeAttribute newArchetypeAttributeLong(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeLong
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeMapPath(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeMapPath
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeScriptFile(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeScriptFile
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeSpell(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeSpell
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeString(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeString
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeText(@NotNull String archetypeAttributeName, @NotNull String endingOld, @NotNull String attributeName, @NotNull String description, int inputLength, @Nullable String fileExtension)
newArchetypeAttributeText
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameendingOld
- the terminating stringattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldsfileExtension
- the file extension@NotNull public ArchetypeAttribute newArchetypeAttributeTreasure(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeTreasure
in interface ArchetypeAttributeFactory
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 ArchetypeAttribute newArchetypeAttributeZSpell(@NotNull String archetypeAttributeName, @NotNull String attributeName, @NotNull String description, int inputLength)
newArchetypeAttributeZSpell
in interface ArchetypeAttributeFactory
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldsFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.