public class JAXBTypeElement extends JAXBElement
Subclass of JAXBElement to allow the use of ParameterizedTypes.
Used as a wrapper object just as JAXBElement would be used during JAXB marshal operations.
JAXBElement.GlobalScopedeclaredType, name, nil, scope, value| Constructor and Description |
|---|
JAXBTypeElement(javax.xml.namespace.QName name,
java.lang.Object value,
java.lang.Class type)
Create a new JAXBTypeElement.
|
JAXBTypeElement(javax.xml.namespace.QName name,
java.lang.Object value,
java.lang.reflect.ParameterizedType type)
Create a new JAXBTypeElement.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Type |
getType()
Get the Type associated with this JAXBTypeElement
|
void |
setType(java.lang.reflect.Type type)
Set the Type associated with this JAXBTypeElement
|
getDeclaredType, getName, getScope, getValue, isGlobalScope, isNil, isTypeSubstituted, setNil, setValuepublic JAXBTypeElement(javax.xml.namespace.QName name,
java.lang.Object value,
java.lang.reflect.ParameterizedType type)
name - QName representing the xml element tag namevalue - Object representing the value of an xml element.type - ParameterizedType associated with this JAXBTypeElement.public JAXBTypeElement(javax.xml.namespace.QName name,
java.lang.Object value,
java.lang.Class type)
name - QName representing the xml element tag namevalue - Object representing the value of an xml element.type - Class associated with this JAXBTypeElement.public java.lang.reflect.Type getType()
public void setType(java.lang.reflect.Type type)
type - to associate with this JAXBTypeElement