Package org.robwork.sdurw_core
Class DOMParser.Factory
- java.lang.Object
-
- org.robwork.sdurw_core.ExtensionPointDOMParser
-
- org.robwork.sdurw_core.DOMParser.Factory
-
- Enclosing class:
- DOMParser
public static class DOMParser.Factory extends ExtensionPointDOMParser
a factory for DOMParsers. This factory defines an
extension point for DOMParsers. Typically this is for parsing xml files,
however, anything that parses from some stream or file into a DOM structure
can be a DOMParser.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(DOMParser.Factory obj)
static DOMParserPtr
getDOMParser(java.lang.String format)
get a DOM parser for a specific file formatstatic vector_s
getSupportedFormats()
get a list of supported formatsstatic boolean
hasDOMParser(java.lang.String format)
check if the factory has a DOM parser for a specific format-
Methods inherited from class org.robwork.sdurw_core.ExtensionPointDOMParser
getCPtr, getExtensionDescriptors, getExtensions, getId, getName, getSchema
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(DOMParser.Factory obj)
-
delete
public void delete()
- Overrides:
delete
in classExtensionPointDOMParser
-
getDOMParser
public static DOMParserPtr getDOMParser(java.lang.String format)
get a DOM parser for a specific file format- Parameters:
format
- [in] the extension identifying the file format (without initial dot).- Returns:
- a parser if found, false otherwise.
-
hasDOMParser
public static boolean hasDOMParser(java.lang.String format)
check if the factory has a DOM parser for a specific format- Parameters:
format
- [in] file ending like: xml, ini, txt...- Returns:
-
getSupportedFormats
public static vector_s getSupportedFormats()
get a list of supported formats- Returns:
-
-