Class ArchetypeTypeParser


  • public class ArchetypeTypeParser
    extends java.lang.Object
    Utility class for parsing ArchetypeType instances.
    • Constructor Detail

      • ArchetypeTypeParser

        public ArchetypeTypeParser​(@NotNull
                                   @NotNull ArchetypeAttributeParser archetypeAttributeParser)
        Creates a new instance.
        Parameters:
        archetypeAttributeParser - the parser to use
    • Method Detail

      • loadAttributeList

        @NotNull
        public @NotNull ArchetypeType loadAttributeList​(@NotNull
                                                        @NotNull nu.xom.Element typeElement,
                                                        @NotNull
                                                        @NotNull ErrorViewCollector errorViewCollector,
                                                        @Nullable
                                                        @Nullable ArchetypeType parentArchetypeType,
                                                        @NotNull
                                                        @NotNull ArchetypeTypeSet archetypeTypeSet,
                                                        @NotNull
                                                        @NotNull IgnorelistsDefinition ignorelistsDefinition,
                                                        boolean isDefaultType)
        Parses an element which contains a list of Constants.XML_ELEMENT_ATTRIBUTE elements from a types.xml file.
        Parameters:
        typeElement - the xml 'type' element which is going to be parsed
        errorViewCollector - the error view collector for reporting errors
        parentArchetypeType - the parent archetype type
        archetypeTypeSet - archetype type list
        ignorelistsDefinition - the ignore_lists contents
        isDefaultType - whether this element is the "default_type"
        Returns:
        the archetype type or null