Class DefaultXmlDocumentInfo
java.lang.Object
org.pentaho.reporting.libraries.xmlns.parser.DefaultXmlDocumentInfo
- All Implemented Interfaces:
XmlDocumentInfo
A data class that holds all relevant information about a XML document to make a decision on what parser to use to
interpret the XML content.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default-namespace declared on the root-element.Returns the Public-ID of the Document's DTD (if there's any).Returns the tag name of the root-level element.Returns the namespace URI for the root-element of the document.Returns the System-ID of the document's DTD.voidsetDefaultNameSpace(String defaultNameSpace) Defines the default-namespace declared on the root-element.voidsetPublicDTDId(String publicDTDId) Defines the Public-ID of the Document's DTD (if there's any).voidsetRootElement(String rootElement) Defines the tag name of the root-level element.voidsetRootElementAttributes(Attributes rootElementAttributes) voidsetRootElementNameSpace(String rootElementNameSpace) Defines the namespace URI for the root-element of the document.voidsetSystemDTDId(String systemDTDId) Defines the System-ID of the document's DTD.toString()Returns a string representation of the document info.
-
Constructor Details
-
DefaultXmlDocumentInfo
public DefaultXmlDocumentInfo()Default-Constructor.
-
-
Method Details
-
getRootElement
Returns the tag name of the root-level element.- Specified by:
getRootElementin interfaceXmlDocumentInfo- Returns:
- the root-tag-name.
-
setRootElement
Defines the tag name of the root-level element.- Parameters:
rootElement- the root-tag-name.
-
getRootElementNameSpace
Returns the namespace URI for the root-element of the document.- Specified by:
getRootElementNameSpacein interfaceXmlDocumentInfo- Returns:
- the namespace of the root-element.
-
setRootElementNameSpace
Defines the namespace URI for the root-element of the document.- Parameters:
rootElementNameSpace- the namespace of the root-element.
-
getRootElementAttributes
- Specified by:
getRootElementAttributesin interfaceXmlDocumentInfo
-
setRootElementAttributes
-
getPublicDTDId
Returns the Public-ID of the Document's DTD (if there's any).- Specified by:
getPublicDTDIdin interfaceXmlDocumentInfo- Returns:
- the public id.
-
setPublicDTDId
Defines the Public-ID of the Document's DTD (if there's any).- Parameters:
publicDTDId- the public id.
-
getSystemDTDId
Returns the System-ID of the document's DTD.- Specified by:
getSystemDTDIdin interfaceXmlDocumentInfo- Returns:
- the system-id.
-
setSystemDTDId
Defines the System-ID of the document's DTD.- Parameters:
systemDTDId- the system-id.
-
toString
Returns a string representation of the document info. This is for debugging purposes only. -
getDefaultNameSpace
Returns the default-namespace declared on the root-element. It is not guaranteed that this information is filled until a XmlFactoryModule has been selected.- Specified by:
getDefaultNameSpacein interfaceXmlDocumentInfo- Returns:
- the default-namespace.
-
setDefaultNameSpace
Defines the default-namespace declared on the root-element. It is not guaranteed that this information is filled until a XmlFactoryModule has been selected.- Parameters:
defaultNameSpace- the default-namespace.
-