public class Root
extends java.lang.Object
Root 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 Descriptor.
Root objects can be returned from Unmarshaller unmarshal operations and can be given to Marshaller.marshal operations. They may also be in values returned by AnyCollectionMappings and AnyObjectMappings.
Constructor and Description |
---|
Root() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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.
|
int |
hashCode() |
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.
|
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
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference