|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.oxm.XMLRoot
public class XMLRoot
XMLRoot is used to hold an Object along with the corresponding QName and some other related information. Typically this is used when the object is marshalled/unmarshalled to a QName other than the defaultRootElement set on the XMLDescriptor.
XMLRoot objects can be returned from XMLUnmarshaller unmarshal operations and can be given to XMLMarshaller.marshal operations. They may also be in values return by XMLAnyCollectionMappings and XMLAnyObjectMappings.
Field Summary | |
---|---|
protected java.lang.Class |
declaredType
|
protected java.lang.String |
encoding
|
protected java.lang.String |
localName
|
protected java.lang.String |
namespaceUri
|
protected boolean |
nil
|
protected java.lang.String |
noNamespaceSchemaLocation
|
protected java.lang.String |
prefix
|
protected java.lang.Object |
rootObject
|
protected java.lang.String |
schemaLocation
|
protected javax.xml.namespace.QName |
schemaType
|
protected java.lang.String |
xmlVersion
|
Constructor Summary | |
---|---|
XMLRoot()
|
Method Summary | |
---|---|
java.lang.Class |
getDeclaredType()
Gets the declared type. |
java.lang.String |
getEncoding()
Gets the encoding which will be set on the XMLRoot during unmarshal. |
java.lang.String |
getLocalName()
Gets the local name. |
java.lang.String |
getNamespaceURI()
Gets the namespace uri. |
java.lang.String |
getNoNamespaceSchemaLocation()
Gets the no namespace schema location which will be set on the XMLRoot during unmarshal. |
java.lang.Object |
getObject()
Gets the object. |
java.lang.String |
getSchemaLocation()
Gets the schema location which will be set on the XMLRoot during unmarshal. |
javax.xml.namespace.QName |
getSchemaType()
Gets the schema type. |
java.lang.String |
getXMLVersion()
Gets the XML version which will be set on the XMLRoot during unmarshal. |
boolean |
isNil()
Checks if is nil. |
void |
setDeclaredType(java.lang.Class type)
Sets the declared type. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setLocalName(java.lang.String name)
Set the element name. |
void |
setNamespaceURI(java.lang.String rootElementUri)
Sets the namespace uri associated with the QName of this XMLRoot. |
void |
setNil(boolean nil)
Sets that this XMLRoot object is nil. |
void |
setNoNamespaceSchemaLocation(java.lang.String noNamespaceSchemaLocation)
Sets the no namespace schema location. |
void |
setObject(java.lang.Object rootObject)
Sets the object associated with this XMLRoot. |
void |
setSchemaLocation(java.lang.String schemaLocation)
Sets the schema location. |
void |
setSchemaType(javax.xml.namespace.QName schemaType)
Sets the schema type that should be associated with this XMLRoot object. |
void |
setVersion(java.lang.String version)
Sets the version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object rootObject
protected java.lang.String localName
protected java.lang.String namespaceUri
protected java.lang.String prefix
protected java.lang.String encoding
protected java.lang.String xmlVersion
protected java.lang.String schemaLocation
protected java.lang.String noNamespaceSchemaLocation
protected javax.xml.namespace.QName schemaType
protected java.lang.Class declaredType
protected boolean nil
Constructor Detail |
---|
public XMLRoot()
Method Detail |
---|
public java.lang.Object getObject()
public java.lang.String getLocalName()
public java.lang.String getNamespaceURI()
public void setObject(java.lang.Object rootObject)
rootObject
- The object to associate with this XMLRoot.public void setLocalName(java.lang.String name)
name
- the new local namepublic void setNamespaceURI(java.lang.String rootElementUri)
rootElementUri
- the new namespace uripublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- the new encodingpublic java.lang.String getXMLVersion()
public void setVersion(java.lang.String version)
version
- the new versionpublic java.lang.String getSchemaLocation()
public void setSchemaLocation(java.lang.String schemaLocation)
schemaLocation
- the new schema locationpublic java.lang.String getNoNamespaceSchemaLocation()
public void setNoNamespaceSchemaLocation(java.lang.String noNamespaceSchemaLocation)
noNamespaceSchemaLocation
- the new no namespace schema locationpublic void setSchemaType(javax.xml.namespace.QName schemaType)
schemaType
- the new schema typepublic javax.xml.namespace.QName getSchemaType()
public void setDeclaredType(java.lang.Class type)
type
- The declared type of this XMLRoot object.public java.lang.Class getDeclaredType()
public boolean isNil()
public void setNil(boolean nil)
nil
-
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |