Class ModuleParser

    • Field Detail

      • TEMP

        public static final org.jdom2.Namespace TEMP
    • Constructor Detail

      • ModuleParser

        public ModuleParser()
    • Method Detail

      • getNamespaceUri

        public String getNamespaceUri()
        Returns the namespace URI this parser handles.

        Specified by:
        getNamespaceUri in interface ModuleParser
        Returns:
        the namespace URI.
      • parse

        public Module parse​(org.jdom2.Element element,
                            Locale locale)
        Parses the XML node (JDOM element) extracting module information.

        Specified by:
        parse in interface ModuleParser
        Parameters:
        element - the XML node (JDOM element) to extract module information from.
        Returns:
        a module instance, null if the element did not have module information.
      • addNotNullAttribute

        protected void addNotNullAttribute​(org.jdom2.Element target,
                                           String name,
                                           Object value)