public class SDOXMLDocument extends XMLRoot implements commonj.sdo.helper.XMLDocument
Purpose: Represents an XML Document containing a tree of DataObjects.
An example XMLDocument fragment is:
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XML_ENCODING |
static String |
DEFAULT_XML_VERSION |
Constructor and Description |
---|
SDOXMLDocument() |
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Return the XML encoding of the document, or null if not specified.
|
NamespaceResolver |
getNamespaceResolver()
INTERNAL:
Return the namespaceResolver to be used with this document.
|
String |
getNoNamespaceSchemaLocation()
Return the value of the noNamespaceSchemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if not present.
|
String |
getRootElementName()
Return the name of the root element.
|
String |
getRootElementURI()
Return the targetNamespace URI for the root element.
|
commonj.sdo.DataObject |
getRootObject()
Return the root DataObject for the XMLDocument.
|
String |
getSchemaLocation()
Return the value of the schemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if not present.
|
String |
getXMLVersion()
Return the XML version of the document, or null if not specified.
|
boolean |
isXMLDeclaration()
Return the XML declaration of the document.
|
void |
setEncoding(String encoding)
Set the XML encoding of the document, or null if not specified.
|
void |
setNamespaceResolver(NamespaceResolver namespaceResolver)
INTERNAL:
Set the namespaceresolver of the document
|
void |
setNoNamespaceSchemaLocation(String schemaLocation)
Sets the value of the noNamespaceSchemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if it should not be present.
|
void |
setRootElementName(String rootElementName)
INTERNAL:
Set the root element name of the document
|
void |
setRootElementURI(String rootElementUri)
INTERNAL:
Set the root element uri of the document
|
void |
setRootObject(commonj.sdo.DataObject rootObject)
INTERNAL:
Set the root data object corresponding to the document
|
void |
setSchemaLocation(String schemaLocation)
Sets the value of the schemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if it should not be present.
|
void |
setXMLDeclaration(boolean xmlDeclaration)
Set the XML declaration version of the document.
|
void |
setXMLVersion(String xmlVersion)
Set the XML version of the document, or null if not specified.
|
getDeclaredType, getLocalName, getNamespaceURI, getObject, getRootFragment, getSchemaType, isNil, setDeclaredType, setLocalName, setNamespaceURI, setNil, setObject, setSchemaType, setVersion
public static final String DEFAULT_XML_ENCODING
public static final String DEFAULT_XML_VERSION
public commonj.sdo.DataObject getRootObject()
getRootObject
in interface commonj.sdo.helper.XMLDocument
public String getRootElementURI()
getRootElementURI
in interface commonj.sdo.helper.XMLDocument
public String getRootElementName()
getRootElementName
in interface commonj.sdo.helper.XMLDocument
public String getEncoding()
getEncoding
in interface commonj.sdo.helper.XMLDocument
getEncoding
in class XMLRoot
public void setEncoding(String encoding)
setEncoding
in interface commonj.sdo.helper.XMLDocument
setEncoding
in class XMLRoot
encoding
- public boolean isXMLDeclaration()
isXMLDeclaration
in interface commonj.sdo.helper.XMLDocument
public void setXMLDeclaration(boolean xmlDeclaration)
setXMLDeclaration
in interface commonj.sdo.helper.XMLDocument
xmlDeclaration
- the XML declaration version of the document.public String getXMLVersion()
getXMLVersion
in interface commonj.sdo.helper.XMLDocument
getXMLVersion
in class XMLRoot
public void setXMLVersion(String xmlVersion)
setXMLVersion
in interface commonj.sdo.helper.XMLDocument
xmlVersion
- the XML version of the document, or null if not specified.public String getSchemaLocation()
getSchemaLocation
in interface commonj.sdo.helper.XMLDocument
getSchemaLocation
in class XMLRoot
public void setSchemaLocation(String schemaLocation)
setSchemaLocation
in interface commonj.sdo.helper.XMLDocument
setSchemaLocation
in class XMLRoot
schemaLocation
- the value of the schemaLocation declaration, or null.public String getNoNamespaceSchemaLocation()
getNoNamespaceSchemaLocation
in interface commonj.sdo.helper.XMLDocument
getNoNamespaceSchemaLocation
in class XMLRoot
public void setNoNamespaceSchemaLocation(String schemaLocation)
setNoNamespaceSchemaLocation
in interface commonj.sdo.helper.XMLDocument
setNoNamespaceSchemaLocation
in class XMLRoot
schemaLocation
- the value of the noNamespaceSchemaLocation declaration, or null.public void setRootObject(commonj.sdo.DataObject rootObject)
rootObject
- the root DataObject corresponding to the documentpublic void setRootElementName(String rootElementName)
rootElementName
- the root element name of the documentpublic void setRootElementURI(String rootElementUri)
rootElementURI
- the root element uri of the documentpublic void setNamespaceResolver(NamespaceResolver namespaceResolver)
namespaceResolver
- the namespaceResolver to be used with the documentpublic NamespaceResolver getNamespaceResolver()