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.
| Modifier and Type | Field and Description |
|---|---|
| protected Class | |
| protected String | |
| protected String | |
| protected String | |
| protected boolean | |
| protected String | |
| protected String | |
| protected Object | |
| protected String | |
| protected QName | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public Class | |
| public String | Returns: the encodingGets the encoding which will be set on the XMLRoot during unmarshal. |
| public String | |
| public String | |
| public String | Returns: the no namespace schema locationGets the no namespace schema location which will be set on the XMLRoot during unmarshal. |
| public Object | |
| public String | Returns: the schema locationGets the schema location which will be set on the XMLRoot during unmarshal. |
| public QName | Returns: the schema type associated with this XMLRoot object or null.Gets the schema type. |
| public String | Returns: the XML versionGets the XML version which will be set on the XMLRoot during unmarshal. |
| public int | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | setNamespaceURI(String
the new namespace uri rootElementUri)Sets the namespace uri associated with the QName of this XMLRoot. |
| public void | |
| public void | setNoNamespaceSchemaLocation(String
the new no namespace schema location noNamespaceSchemaLocation)Sets the no namespace schema location. |
| public void | |
| public void | |
| public void | setSchemaType(QName
the new schema type schemaType)Sets the schema type that should be associated with this XMLRoot object. |
| public void |
| declaredType | back to summary |
|---|---|
| protected Class<?> declaredType | |
| encoding | back to summary |
|---|---|
| protected String encoding | |
| localName | back to summary |
|---|---|
| protected String localName | |
| namespaceUri | back to summary |
|---|---|
| protected String namespaceUri | |
| nil | back to summary |
|---|---|
| protected boolean nil | |
| noNamespaceSchemaLocation | back to summary |
|---|---|
| protected String noNamespaceSchemaLocation | |
| prefix | back to summary |
|---|---|
| protected String prefix | |
| rootObject | back to summary |
|---|---|
| protected Object rootObject | |
| schemaLocation | back to summary |
|---|---|
| protected String schemaLocation | |
| schemaType | back to summary |
|---|---|
| protected QName schemaType | |
| xmlVersion | back to summary |
|---|---|
| protected String xmlVersion | |
| Root | back to summary |
|---|---|
| public Root() Default constructor. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDeclaredType | back to summary |
|---|---|
| public Class Gets the declared type. This may be different than the getObject().getClass(), for example, in the case where inheritance is used the declared type may be the super class and the actual object could be a subclass.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Gets the encoding which will be set on the XMLRoot during unmarshal.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Gets the local name. This should not be null.
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Gets the namespace uri. This may be null.
| |
| getNoNamespaceSchemaLocation | back to summary |
|---|---|
| public String getNoNamespaceSchemaLocation() Gets the no namespace schema location which will be set on the XMLRoot during unmarshal.
| |
| getObject | back to summary |
|---|---|
| public Object getObject() Gets the object. This may be null.
| |
| getSchemaLocation | back to summary |
|---|---|
| public String getSchemaLocation() Gets the schema location which will be set on the XMLRoot during unmarshal.
| |
| getSchemaType | back to summary |
|---|---|
| public QName getSchemaType() Gets the schema type. This schema type will be considering when marshalling XMLRoot objects.
| |
| getXMLVersion | back to summary |
|---|---|
| public String getXMLVersion() Gets the XML version which will be set on the XMLRoot during unmarshal.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isNil | back to summary |
|---|---|
| public boolean isNil() Checks if is nil. Returns true if this XMLRoot has been explicitly set to nil or if xmlRoot.getObject() is null.
| |
| setDeclaredType | back to summary |
|---|---|
| public void setDeclaredType(Class<?> type) Sets the declared type. This may be different than the getObject().getClass(), for example, in the case where inheritance is used the declared type may be the super class and the actual object could be a subclass.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Sets the encoding.
| |
| setLocalName | back to summary |
|---|---|
| public void setLocalName(String name) Set the element name. This method will parse the qualified name in an attempt to set the localName fields. ie: this could be set to "someLocalName" or "somePrefix:someLocalName"
| |
| setNamespaceURI | back to summary |
|---|---|
| public void setNamespaceURI(String rootElementUri) Sets the namespace uri associated with the QName of this XMLRoot.
| |
| setNil | back to summary |
|---|---|
| public void setNil(boolean nil) Sets that this XMLRoot object is nil. If setNil(true) is explicitly called then isNil() will return true even if rootObject is not null. | |
| setNoNamespaceSchemaLocation | back to summary |
|---|---|
| public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) Sets the no namespace schema location.
| |
| setObject | back to summary |
|---|---|
| public void setObject(Object rootObject) Sets the object associated with this XMLRoot. This may be null.
| |
| setSchemaLocation | back to summary |
|---|---|
| public void setSchemaLocation(String schemaLocation) Sets the schema location.
| |
| setSchemaType | back to summary |
|---|---|
| public void setSchemaType(QName schemaType) Sets the schema type that should be associated with this XMLRoot object.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(String version) Sets the version.
| |