Package com.rometools.modules.sle.io
Class ModuleParser
- java.lang.Object
-
- com.rometools.modules.sle.io.ModuleParser
-
- All Implemented Interfaces:
ModuleParser
public class ModuleParser extends Object implements ModuleParser
-
-
Field Summary
Fields Modifier and Type Field Description static org.jdom2.NamespaceTEMP
-
Constructor Summary
Constructors Constructor Description ModuleParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNotNullAttribute(org.jdom2.Element target, String name, Object value)StringgetNamespaceUri()Returns the namespace URI this parser handles.voidinsertValues(SimpleListExtension sle, List<org.jdom2.Element> elements)Moduleparse(org.jdom2.Element element, Locale locale)Parses the XML node (JDOM element) extracting module information.
-
-
-
Method Detail
-
getNamespaceUri
public String getNamespaceUri()
Returns the namespace URI this parser handles.- Specified by:
getNamespaceUriin interfaceModuleParser- 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:
parsein interfaceModuleParser- 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)
-
insertValues
public void insertValues(SimpleListExtension sle, List<org.jdom2.Element> elements)
-
-