|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlFactoryModule
The XmlFactoryModule is the base of a plugin-structure to allow parser-multiplexing. In that case, the actual implementation of the parser will be selected according to the DTD, Namespace or root-tag of the document.
Field Summary | |
---|---|
static int |
NOT_RECOGNIZED
A constant declaring that the content has NOT been recognized by any mean. |
static int |
RECOGNIZED_BY_DTD
A constant declaring that the content has been recognized by the declared Document Type Declaration (DTD). |
static int |
RECOGNIZED_BY_NAMESPACE
A constant declaring that the content has been recognized by the declared namespace. |
static int |
RECOGNIZED_BY_TAGNAME
A constant declaring that the content has been recognized by the tagname of the root-element of the XML-document. |
Method Summary | |
---|---|
XmlReadHandler |
createReadHandler(XmlDocumentInfo documentInfo)
Creates an XmlReadHandler for the root-tag based on the given document information. |
java.lang.String |
getDefaultNamespace(XmlDocumentInfo documentInfo)
Returns the default namespace for a document with the characteristics given in the XmlDocumentInfo. |
int |
getDocumentSupport(XmlDocumentInfo documentInfo)
Checks the given document data to compute the propability of whether this factory module would be able to handle the given data. |
Field Detail |
---|
static final int RECOGNIZED_BY_NAMESPACE
static final int RECOGNIZED_BY_DTD
static final int RECOGNIZED_BY_TAGNAME
static final int NOT_RECOGNIZED
Method Detail |
---|
int getDocumentSupport(XmlDocumentInfo documentInfo)
documentInfo
- the document information collection.
XmlReadHandler createReadHandler(XmlDocumentInfo documentInfo)
documentInfo
- the document information that has been extracted from
the parser.
java.lang.String getDefaultNamespace(XmlDocumentInfo documentInfo)
documentInfo
- the document information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |