Class ArchetypeAttributeParser
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributeParser
-
public class ArchetypeAttributeParser extends java.lang.ObjectUtility class for parsingArchetypeAttributes.
-
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributeParser(@NotNull ArchetypeAttributeFactory archetypeAttributeFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ArchetypeAttributeload(@NotNull nu.xom.Element attributeElement, @NotNull ErrorViewCollector errorViewCollector, @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull java.lang.String typeName)Loading the data from an xml element into this object.
-
-
-
Constructor Detail
-
ArchetypeAttributeParser
public ArchetypeAttributeParser(@NotNull @NotNull ArchetypeAttributeFactory archetypeAttributeFactory)Creates a new instance.- Parameters:
archetypeAttributeFactory- the archetype attribute factory to use
-
-
Method Detail
-
load
@Nullable public @Nullable ArchetypeAttribute load(@NotNull @NotNull nu.xom.Element attributeElement, @NotNull @NotNull ErrorViewCollector errorViewCollector, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull @NotNull java.lang.String typeName) throws MissingAttributeException
Loading the data from an xml element into this object.- Parameters:
attributeElement- the xml 'attribute' elementerrorViewCollector- the error view collector for reporting errorsarchetypeTypeSet- the archetype type listtypeName- (descriptive) name of the type this attribute belongs to (e.g. "Weapon")- Returns:
- the archetype attribute or
nullif an error occurs - Throws:
MissingAttributeException- if the element cannot be parsed
-
-