public class JAXBIntrospector extends JAXBIntrospector
Purpose:Provide a TopLink implementation of JAXBIntrospector
Responsibilities:
This class is the TopLink implementation of JAXBIntrospector. An Introspector is created by a JAXBContext and allows the user to access certain pieces of meta-data about an instance of a JAXB bound class.
JAXBIntrospector,
JAXBContext| Constructor and Description |
|---|
JAXBIntrospector(XMLContext context) |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.namespace.QName |
getElementName(java.lang.Object obj)
Get xml element qname for
jaxbElement. |
boolean |
isElement(java.lang.Object obj)
Return true if
object represents a JAXB element. |
getValuepublic JAXBIntrospector(XMLContext context)
public boolean isElement(java.lang.Object obj)
JAXBIntrospectorReturn true if object represents a JAXB element.
Parameter object is a JAXB element for following cases:
javax.xml.bind.JAXBElement.object is annotated with
@XmlRootElement.
isElement in class JAXBIntrospectorJAXBIntrospector.getElementName(Object)public javax.xml.namespace.QName getElementName(java.lang.Object obj)
JAXBIntrospectorGet xml element qname for jaxbElement.
getElementName in class JAXBIntrospectorobj - is an object that JAXBIntrospector.isElement(Object) returned true.jaxbElement is not a JAXB Element.