Package org.eclipse.persistence.jaxb
Class JAXBIntrospector
- java.lang.Object
-
- javax.xml.bind.JAXBIntrospector
-
- org.eclipse.persistence.jaxb.JAXBIntrospector
-
public class JAXBIntrospector extends JAXBIntrospector
INTERNALPurpose:Provide a TopLink implementation of JAXBIntrospector
Responsibilities:
- Determine if a an object has an associated Global Element
- Get an element QName for an object that has an associated global element
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.
- See Also:
JAXBIntrospector
,JAXBContext
- Author:
- mmacivor
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Constructor Summary
Constructors Constructor Description JAXBIntrospector(XMLContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.namespace.QName
getElementName(java.lang.Object obj)
Get xml element qname forjaxbElement
.boolean
isElement(java.lang.Object obj)
Return true ifobject
represents a JAXB element.-
Methods inherited from class javax.xml.bind.JAXBIntrospector
getValue
-
-
-
-
Constructor Detail
-
JAXBIntrospector
public JAXBIntrospector(XMLContext context)
-
-
Method Detail
-
isElement
public boolean isElement(java.lang.Object obj)
Description copied from class:JAXBIntrospector
Return true if
object
represents a JAXB element.Parameter
object
is a JAXB element for following cases:- It is an instance of
javax.xml.bind.JAXBElement
. - The class of
object
is annotated with@XmlRootElement
.
- Specified by:
isElement
in classJAXBIntrospector
- See Also:
JAXBIntrospector.getElementName(Object)
- It is an instance of
-
getElementName
public javax.xml.namespace.QName getElementName(java.lang.Object obj)
Description copied from class:JAXBIntrospector
Get xml element qname for
jaxbElement
.- Specified by:
getElementName
in classJAXBIntrospector
- Parameters:
obj
- is an object thatJAXBIntrospector.isElement(Object)
returned true.- Returns:
- xml element qname associated with jaxbElement;
null if
jaxbElement
is not a JAXB Element.
-
-