| java.lang.Object com.sun.tools.xjc.model.AbstractCTypeInfoImpl com.sun.tools.xjc.model.AbstractCElement com.sun.tools.xjc.model.CElementInfo
CElementInfo | final public class CElementInfo extends AbstractCElement implements ElementInfo<NType, NClass>,NType,CClassInfoParent(Code) | | ElementInfo implementation for the compile-time model.
As an NType, it represents the Java representation of this element
(either JAXBElement<T> or Foo).
author: Kohsuke Kawaguchi |
Field Summary | |
final public CClassInfoParent | parent If this element is global, the element info is considered to be
package-level, and this points to the package in which this element
lives in. |
Constructor Summary | |
public | CElementInfo(Model model, QName tagName, CClassInfoParent parent, TypeUse contentType, XmlString defaultValue, XSElementDecl source, CCustomizations customizations, Locator location) Creates an element in the given parent. | public | CElementInfo(Model model, QName tagName, CClassInfoParent parent, String className, CCustomizations customizations, Locator location) Creates an element with a class in the given parent.
When using this construction, the caller must use
CElementInfo.initContentType(TypeUse,XSElementDecl,XmlString) to fill in the content type
later.
This is to avoid a circular model construction dependency between buidling a type
inside an element and element itself. |
parent | final public CClassInfoParent parent(Code) | | If this element is global, the element info is considered to be
package-level, and this points to the package in which this element
lives in.
For local elements, this points to the parent
CClassInfo .
|
CElementInfo | public CElementInfo(Model model, QName tagName, CClassInfoParent parent, TypeUse contentType, XmlString defaultValue, XSElementDecl source, CCustomizations customizations, Locator location)(Code) | | Creates an element in the given parent.
When using this construction,
CElementInfo.initContentType(TypeUse,XSElementDecl,XmlString) must not be invoked.
|
CElementInfo | public CElementInfo(Model model, QName tagName, CClassInfoParent parent, String className, CCustomizations customizations, Locator location)(Code) | | Creates an element with a class in the given parent.
When using this construction, the caller must use
CElementInfo.initContentType(TypeUse,XSElementDecl,XmlString) to fill in the content type
later.
This is to avoid a circular model construction dependency between buidling a type
inside an element and element itself. To build a content type, you need to have
CElementInfo for a parent, so we can't take it as a constructor parameter.
|
accept | public T accept(Visitor<T> visitor)(Code) | | |
getContentInMemoryType | public NType getContentInMemoryType()(Code) | | |
hasClass | public boolean hasClass()(Code) | | True if this element has its own class
(as opposed to be represented as an instance of
JAXBElement .
|
isBoxedType | public boolean isBoxedType()(Code) | | |
|
|