public class SDOXMLDocument extends XMLRoot implements XMLDocument
Purpose: Represents an XML Document containing a tree of DataObjects.
An example XMLDocument fragment is:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_XML_ENCODING |
static java.lang.String |
DEFAULT_XML_VERSION |
Constructor and Description |
---|
SDOXMLDocument() |
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getRootElementName()
Return the name of the root element.
|
java.lang.String |
getRootElementURI()
Return the targetNamespace URI for the root element.
|
DataObject |
getRootObject()
Return the root DataObject for the XMLDocument.
|
java.lang.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.
|
java.lang.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(java.lang.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(java.lang.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(java.lang.String rootElementName)
INTERNAL:
Set the root element name of the document
|
void |
setRootElementURI(java.lang.String rootElementUri)
INTERNAL:
Set the root element uri of the document
|
void |
setRootObject(DataObject rootObject)
INTERNAL:
Set the root data object corresponding to the document
|
void |
setSchemaLocation(java.lang.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(java.lang.String xmlVersion)
Set the XML version of the document, or null if not specified.
|
public static final java.lang.String DEFAULT_XML_ENCODING
public static final java.lang.String DEFAULT_XML_VERSION
public DataObject getRootObject()
getRootObject
in interface XMLDocument
public java.lang.String getRootElementURI()
getRootElementURI
in interface XMLDocument
public java.lang.String getRootElementName()
getRootElementName
in interface XMLDocument
public java.lang.String getEncoding()
getEncoding
in interface XMLDocument
getEncoding
in class org.eclipse.persistence.internal.oxm.Root
public void setEncoding(java.lang.String encoding)
setEncoding
in interface XMLDocument
setEncoding
in class org.eclipse.persistence.internal.oxm.Root
encoding
- public boolean isXMLDeclaration()
isXMLDeclaration
in interface XMLDocument
public void setXMLDeclaration(boolean xmlDeclaration)
setXMLDeclaration
in interface XMLDocument
xmlDeclaration
- the XML declaration version of the document.public java.lang.String getXMLVersion()
getXMLVersion
in interface XMLDocument
getXMLVersion
in class org.eclipse.persistence.internal.oxm.Root
public void setXMLVersion(java.lang.String xmlVersion)
setXMLVersion
in interface XMLDocument
xmlVersion
- the XML version of the document, or null if not specified.public java.lang.String getSchemaLocation()
getSchemaLocation
in interface XMLDocument
getSchemaLocation
in class org.eclipse.persistence.internal.oxm.Root
public void setSchemaLocation(java.lang.String schemaLocation)
setSchemaLocation
in interface XMLDocument
setSchemaLocation
in class org.eclipse.persistence.internal.oxm.Root
schemaLocation
- the value of the schemaLocation declaration, or null.public java.lang.String getNoNamespaceSchemaLocation()
getNoNamespaceSchemaLocation
in interface XMLDocument
getNoNamespaceSchemaLocation
in class org.eclipse.persistence.internal.oxm.Root
public void setNoNamespaceSchemaLocation(java.lang.String schemaLocation)
setNoNamespaceSchemaLocation
in interface XMLDocument
setNoNamespaceSchemaLocation
in class org.eclipse.persistence.internal.oxm.Root
schemaLocation
- the value of the noNamespaceSchemaLocation declaration, or null.public void setRootObject(DataObject rootObject)
rootObject
- the root DataObject corresponding to the documentpublic void setRootElementName(java.lang.String rootElementName)
rootElementName
- the root element name of the documentpublic void setRootElementURI(java.lang.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()