EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

org.eclipse.persistence.jaxb
Class JAXBIntrospector

java.lang.Object
  extended by javax.xml.bind.JAXBIntrospector
      extended by org.eclipse.persistence.jaxb.JAXBIntrospector

public class JAXBIntrospector
extends JAXBIntrospector

INTERNAL

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 peices of meta-data about an instance of a JAXB bound class.

See Also:
JAXBIntrospector, org.eclipse.persistence.jaxb.JAXB20Context
Author:
mmacivor
Since:
Oracle TopLink 11.1.1.0.0

Constructor Summary
JAXBIntrospector(XMLContext context)
           
 
Method Summary
 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.
 
Methods inherited from class javax.xml.bind.JAXBIntrospector
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBIntrospector

public JAXBIntrospector(XMLContext context)
Method Detail

isElement

public boolean isElement(java.lang.Object obj)
Description copied from class: JAXBIntrospector

Return true iff object represents a JAXB element.

Parameter object is a JAXB element for following cases:

  1. It is an instance of javax.xml.bind.JAXBElement.
  2. The class of object is annotated with @XmlRootElement.

Specified by:
isElement in class JAXBIntrospector
See Also:
JAXBIntrospector.getElementName(Object)

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 class JAXBIntrospector
Parameters:
obj - is an object that JAXBIntrospector.isElement(Object) returned true.
Returns:
xml element qname associated with jaxbElement; null if jaxbElement is not a JAXB Element.

EclipseLink 2.0.0, build 'v20091127-r5931' API Reference