public abstract class JAXBIntrospector extends Object
本来,这个类的意图就是概念化JAXB应用程序开发人员如何访问xml绑定信息,如果绑定模型是java到schema或schema到java,则是独立的。 由于访问与JAXB元素相关的XML元素名称是高度请求的功能,因此可以证明对该绑定信息的访问。 得到一个JAXBIntrospector实例的工厂方法是JAXBContext.createJAXBIntrospector() 。
JAXBContext.createJAXBIntrospector()
| Constructor and Description |
|---|
JAXBIntrospector() |
public abstract boolean isElement(Object object)
如果object表示JAXB元素,则返回true。
参数object是用于以下情况的JAXB元素:
javax.xml.bind.JAXBElement 。 object的课程注释为@XmlRootElement 。 getElementName(Object)
public abstract QName getElementName(Object jaxbElement)
获得xml元素qname为jaxbElement 。
jaxbElement - 是一个对象,
isElement(Object)返回true。
jaxbElement不是JAXB元素。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.