public class ArchetypeAttributeParser
extends java.lang.Object
ArchetypeAttributes
.Constructor and Description |
---|
ArchetypeAttributeParser(ArchetypeAttributeFactory archetypeAttributeFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ArchetypeAttribute |
load(nu.xom.Element attributeElement,
ErrorViewCollector errorViewCollector,
ArchetypeTypeSet archetypeTypeSet,
java.lang.String typeName)
Loading the data from an xml element into this object.
|
public ArchetypeAttributeParser(@NotNull ArchetypeAttributeFactory archetypeAttributeFactory)
archetypeAttributeFactory
- the archetype attribute factory to use@Nullable public ArchetypeAttribute load(@NotNull nu.xom.Element attributeElement, @NotNull ErrorViewCollector errorViewCollector, @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull java.lang.String typeName) throws MissingAttributeException
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")null
if an error occursMissingAttributeException
- if the element cannot be parsed