JaxBeanInfo implementation for j2s bean.
| Modifier and Type | Field and Description |
|---|---|
| private AttributeProperty | attributeProperties
The |
| private RuntimeClassInfo | ci
Set only until the link phase to avoid leaking memory. |
| private static final AttributeProperty | |
| private final Method | |
| private Property | idProperty
Non-null if this bean has an ID property. |
| private final Accessor | |
| private Loader | loader
Immutable configured loader for this class. |
| private Loader | |
| private static final Logger | |
| public final Property | properties
Properties of this bean class but not its ancestor classes. |
| private boolean | |
| public final ClassBeanInfoImpl | superClazz
|
| private final Name | |
| private Property | uriProperties
|
| private final Transducer | |
| private final Accessor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public BeanT | createInstance(UnmarshallingContext context)
Implements abstract org. Creates a new instance of the bean. |
| public String | getElementLocalName(BeanT bean)
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(BeanT bean)
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(BeanT bean, 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 |
| protected void | link(JAXBContextImpl grammar)
Overrides org. Called after all the s are created. |
| public boolean | reset(BeanT bean, UnmarshallingContext context)
Implements abstract org. Resets the object to the initial state, as if the object is created fresh. |
| public void | serializeAttributes(BeanT bean, XMLSerializer target)
Implements abstract org. Serializes attributes into the specified target. |
| public void | serializeBody(BeanT bean, XMLSerializer target)
Implements abstract org. Serializes child elements and texts into the specified target. |
| public void | serializeRoot(BeanT bean, XMLSerializer target)
Implements abstract org. Serializes the bean as the root element. |
| public void | serializeURIs(BeanT bean, 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 |
| attributeProperties | back to summary |
|---|---|
| private AttributeProperty<BeanT>[] attributeProperties The | |
| ci | back to summary |
|---|---|
| private RuntimeClassInfo ci Set only until the link phase to avoid leaking memory. | |
| EMPTY_PROPERTIES | back to summary |
|---|---|
| private static final AttributeProperty<BeanT>[] EMPTY_PROPERTIES | |
| factoryMethod | back to summary |
|---|---|
| private final Method factoryMethod | |
| idProperty | back to summary |
|---|---|
| private Property<? super BeanT> idProperty Non-null if this bean has an ID property. | |
| inheritedAttWildcard | back to summary |
|---|---|
| private final Accessor<? super BeanT, Map<QName, String>> inheritedAttWildcard | |
| loader | back to summary |
|---|---|
| private Loader loader Immutable configured loader for this class. Set from the link method, but considered final. | |
| loaderWithTypeSubst | back to summary |
|---|---|
| private Loader loaderWithTypeSubst | |
| logger | back to summary |
|---|---|
| private static final Logger logger Hides org. | |
| properties | back to summary |
|---|---|
| public final Property<BeanT>[] properties Properties of this bean class but not its ancestor classes. | |
| retainPropertyInfo | back to summary |
|---|---|
| private boolean retainPropertyInfo | |
| superClazz | back to summary |
|---|---|
| public final ClassBeanInfoImpl<? super BeanT> superClazz
| |
| tagName | back to summary |
|---|---|
| private final Name tagName | |
| uriProperties | back to summary |
|---|---|
| private Property<BeanT>[] uriProperties
| |
| xducer | back to summary |
|---|---|
| private final Transducer<BeanT> xducer | |
| xmlLocatorField | back to summary |
|---|---|
| private final Accessor<? super BeanT, Locator> xmlLocatorField | |
| ClassBeanInfoImpl | back to summary |
|---|---|
| pack-priv ClassBeanInfoImpl(JAXBContextImpl owner, RuntimeClassInfo ci) | |
| checkOverrideProperties | back to summary |
|---|---|
| private void checkOverrideProperties(Property<BeanT> p) | |
| createInstance | back to summary |
|---|---|
| public BeanT createInstance(UnmarshallingContext context) throws IllegalAccessException, InvocationTargetException, InstantiationException, SAXException Implements abstract org. Doc from org. Creates a new instance of the bean.
This operation is only supported when
| |
| getElementLocalName | back to summary |
|---|---|
| public String getElementLocalName(BeanT bean) 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(BeanT bean) 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(BeanT bean, XMLSerializer target) throws SAXException 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 |
|---|---|
| protected void link(JAXBContextImpl grammar) Overrides org. Doc from org. Called after all the s are created.
| |
| reset | back to summary |
|---|---|
| public boolean reset(BeanT bean, UnmarshallingContext context) throws SAXException 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(BeanT bean, XMLSerializer target) throws SAXException, IOException, XMLStreamException Implements abstract org. Doc from org. Serializes attributes into the specified target.
| |
| serializeBody | back to summary |
|---|---|
| public void serializeBody(BeanT bean, 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(BeanT bean, 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(BeanT bean, XMLSerializer target) throws SAXException 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
| |