..
JAXB will generate the following objects: E1, T2, E3 E1 will have an @XMLRootElement annotation.
It is "element" and "type" enabled. e2 does not have a generated object. So it will be
represented as a JAXBElement that contains an object T2. The JAXBElement is "element" enabled.
T2 represents a complexType. It is only "type" enabled. E3 represents the e3 complexType (it
does not represent the e3 element). Thus E3 is "type enabled".
When JAXB unmarshals an object, it will return an "element" enabled object (either a generatated
object with @XMLRootElement or a JAXBElement). Conversely, you must always marshal "element"
enabled objects.
- See Also:
At the signature level, the values passed as arguments in an SEI operation represent type
enabled objects. Each of the object must be converted to an element enabled object to
marshal (or conversely converted to a type enabled object when unmarshalling)
Constructor Summary |
Element(java.lang.Object elementValue,
javax.xml.namespace.QName qName)
Create Element from an |
Element(java.lang.Object typeValue,
javax.xml.namespace.QName qName,
java.lang.Class cls)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Element
public Element(java.lang.Object elementValue,
javax.xml.namespace.QName qName)
- Create Element from an
- Parameters:
elementValue
- must be JAXBElement or @XmlRootElement renderedqName
- associated QName
Element
public Element(java.lang.Object typeValue,
javax.xml.namespace.QName qName,
java.lang.Class cls)
- Parameters:
typeValue
- must not be a JAXBElement. Must not have @XmlRootElement rendering.
typeValue must not be a Holder or other JAXWS api value.qName
- associated QNamecls
-
getElementValue
public java.lang.Object getElementValue()
getTypeValue
public java.lang.Object getTypeValue()
getQName
public javax.xml.namespace.QName getQName()
Copyright © 2007 Apache Web Services Project. All Rights Reserved.