public class ArchetypeAttributeParser
extends java.lang.Object
ArchetypeAttributes.| Constructor and Description |
|---|
ArchetypeAttributeParser(@NotNull ArchetypeAttributeFactory archetypeAttributeFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable ArchetypeAttribute |
load(@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.
|
public ArchetypeAttributeParser(@NotNull
@NotNull ArchetypeAttributeFactory archetypeAttributeFactory)
archetypeAttributeFactory - the archetype attribute factory to use@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
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