JaxBeanInfo implementation for RuntimeElementInfo.
| Modifier and Type | Class and Description |
|---|---|
| private class | ElementBeanInfoImpl.
Use the previous |
| Modifier and Type | Field and Description |
|---|---|
| private final Constructor | constructor
If non-null, use this to create an instance. |
| public final Class | |
| private Loader | |
| private final Property | |
| private final Class | |
| private final QName |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| protected | ElementBeanInfoImpl(final JAXBContextImpl grammar)
The constructor for the sole instanceof |
| Modifier and Type | Method and Description |
|---|---|
| public JAXBElement | createInstance(UnmarshallingContext context)
Implements abstract org. Creates a new instance of the bean. |
| public JAXBElement | |
| public String | getElementLocalName(JAXBElement<T> e)
Implements abstract org. Returns the local name portion of the element name, if the bean that this class represents is mapped from/to an XML element. |
| public String | getElementNamespaceURI(JAXBElement<T> e)
Implements abstract org. Returns the namespace URI portion of the element name, if the bean that this class represents is mapped from/to an XML element. |
| public String | getId(JAXBElement<T> e, XMLSerializer target)
Implements abstract org. Gets the ID value of the given bean, if it has an ID value. |
| public Loader | getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable)
Implements abstract org. Gets the |
| public Transducer | getTransducer()
Implements abstract org. If the bean's representation in XML is just a text,
this method return a |
| public void | link(JAXBContextImpl grammar)
Overrides org. Called after all the s are created. |
| public boolean | reset(JAXBElement<T> e, UnmarshallingContext context)
Implements abstract org. Resets the object to the initial state, as if the object is created fresh. |
| public void | serializeAttributes(JAXBElement<T> e, XMLSerializer target)
Implements abstract org. Serializes attributes into the specified target. |
| public void | serializeBody(JAXBElement<T> element, XMLSerializer target)
Implements abstract org. Serializes child elements and texts into the specified target. |
| public void | serializeRoot(JAXBElement<T> e, XMLSerializer target)
Implements abstract org. Serializes the bean as the root element. |
| public void | serializeURIs(JAXBElement<T> e, XMLSerializer target)
Implements abstract org. Declares all the namespace URIs this object is using at its top-level scope into the specified target. |
| public void | wrapUp()
Overrides org. Called at the end of the |
| constructor | back to summary |
|---|---|
| private final Constructor<? extends JAXBElement<T>> constructor If non-null, use this to create an instance. It takes one value. | |
| expectedType | back to summary |
|---|---|
| public final Class<T> expectedType | |
| loader | back to summary |
|---|---|
| private Loader loader | |
| property | back to summary |
|---|---|
| private final Property<BeanT> property | |
| scope | back to summary |
|---|---|
| private final Class<T> scope | |
| tagName | back to summary |
|---|---|
| private final QName tagName | |
| ElementBeanInfoImpl | back to summary |
|---|---|
| pack-priv ElementBeanInfoImpl(JAXBContextImpl grammar, RuntimeElementInfo rei) | |
| ElementBeanInfoImpl | back to summary |
|---|---|
| protected ElementBeanInfoImpl(final JAXBContextImpl grammar) The constructor for the sole instanceof | |
| createInstance | back to summary |
|---|---|
| public JAXBElement Implements abstract org. Doc from org. Creates a new instance of the bean.
This operation is only supported when
| |
| createInstanceFromValue | back to summary |
|---|---|
| public JAXBElement | |
| getElementLocalName | back to summary |
|---|---|
| public String getElementLocalName(JAXBElement<T> e) Implements abstract org. Doc from org. Returns the local name portion of the element name, if the bean that this class represents is mapped from/to an XML element.
| |
| getElementNamespaceURI | back to summary |
|---|---|
| public String getElementNamespaceURI(JAXBElement<T> e) Implements abstract org. Doc from org. Returns the namespace URI portion of the element name, if the bean that this class represents is mapped from/to an XML element.
| |
| getId | back to summary |
|---|---|
| public String getId(JAXBElement<T> e, XMLSerializer target) Implements abstract org. Doc from org. Gets the ID value of the given bean, if it has an ID value. Otherwise return null.
| |
| getLoader | back to summary |
|---|---|
| public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) Implements abstract org. Doc from org. Gets the
| |
| getTransducer | back to summary |
|---|---|
| public Transducer Implements abstract org. Doc from org. If the bean's representation in XML is just a text,
this method return a
| |
| link | back to summary |
|---|---|
| public void link(JAXBContextImpl grammar) Overrides org. Doc from org. Called after all the s are created.
| |
| reset | back to summary |
|---|---|
| public boolean reset(JAXBElement<T> e, UnmarshallingContext context) Implements abstract org. Doc from org. Resets the object to the initial state, as if the object is created fresh. This is used to reuse an existing object for unmarshalling.
| |
| serializeAttributes | back to summary |
|---|---|
| public void serializeAttributes(JAXBElement<T> e, XMLSerializer target) Implements abstract org. Doc from org. Serializes attributes into the specified target.
| |
| serializeBody | back to summary |
|---|---|
| public void serializeBody(JAXBElement<T> element, XMLSerializer target) throws SAXException, IOException, XMLStreamException Implements abstract org. Doc from org. Serializes child elements and texts into the specified target.
| |
| serializeRoot | back to summary |
|---|---|
| public void serializeRoot(JAXBElement<T> e, XMLSerializer target) throws SAXException, IOException, XMLStreamException Implements abstract org. Doc from org. Serializes the bean as the root element. In the java-to-schema binding, an object might marshal in two different ways depending on whether it is used as the root of the graph or not. In the former case, an object could marshal as an element, whereas in the latter case, it marshals as a type. This method is used to marshal the root of the object graph to allow this semantics to be implemented. It is doubtful to me if it's a good idea for an object to marshal in two ways depending on the context.
For schema-to-java, this is equivalent to
| |
| serializeURIs | back to summary |
|---|---|
| public void serializeURIs(JAXBElement<T> e, XMLSerializer target) Implements abstract org. Doc from org. Declares all the namespace URIs this object is using at its top-level scope into the specified target.
| |
| wrapUp | back to summary |
|---|---|
| public void wrapUp() Overrides org. Doc from org. Called at the end of the
| |
UnmarshallingContext.State 's target to store
JAXBElement object to be unmarshalled. This allows the property Loader
to correctly find the parent object.
This is a hack.
| Modifier and Type | Field and Description |
|---|---|
| private final Loader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | intercept(UnmarshallingContext.
Implements org. Called when the child loader is deactivated. |
| public void | startElement(UnmarshallingContext.
Overrides org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader. |
| core | back to summary |
|---|---|
| private final Loader core | |
| IntercepterLoader | back to summary |
|---|---|
| public IntercepterLoader(Loader core) | |
| intercept | back to summary |
|---|---|
| public Object intercept(UnmarshallingContext. Implements org. Doc from org. Called when the child loader is deactivated.
| |
| startElement | back to summary |
|---|---|
| public void startElement(UnmarshallingContext. Overrides org. Doc from org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader.
The callee may change
| |