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
,
org.eclipse.persistence.jaxb.JAXB20Context
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 iff
object represents a JAXB element. |
getValue
public JAXBIntrospector(XMLContext context)
public boolean isElement(java.lang.Object obj)
JAXBIntrospector
Return true iff 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 JAXBIntrospector
JAXBIntrospector.getElementName(Object)
public javax.xml.namespace.QName getElementName(java.lang.Object obj)
JAXBIntrospector
Get xml element qname for jaxbElement
.
getElementName
in class JAXBIntrospector
obj
- is an object that JAXBIntrospector.isElement(Object)
returned true.jaxbElement
is not a JAXB Element.