com.sun.tools.xjc.model
public final class CElementInfo extends AbstractCElement implements ElementInfo<NType,NClass>, NType, CClassInfoParent
As an NType, it represents the Java representation of this element (either JAXBElement<T> or Foo).
Field Summary | |
---|---|
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.
|
String | squeezedName
Custom squeezed name , if any. |
Constructor Summary | |
---|---|
CElementInfo(Model model, QName tagName, CClassInfoParent parent, TypeUse contentType, XmlString defaultValue, XSElementDecl source, CCustomizations customizations, Locator location)
Creates an element in the given parent.
| |
CElementInfo(Model model, QName tagName, CClassInfoParent parent, String className, CCustomizations customizations, Locator location)
Creates an element with a class in the given parent.
|
Method Summary | |
---|---|
<T> T | accept(Visitor<T> visitor) |
String | fullName() |
NType | getContentInMemoryType() |
CNonElement | getContentType() |
String | getDefaultValue() |
QName | getElementName() |
JPackage | getOwnerPackage() |
CElementPropertyInfo | getProperty() |
CClassInfo | getScope() |
String | getSqueezedName()
Returns the "squeezed name" of this element.
|
CElementInfo | getSubstitutionHead() |
Collection<CElementInfo> | getSubstitutionMembers() |
NType | getType() |
boolean | hasClass()
True if this element has its own class
(as opposed to be represented as an instance of JAXBElement. |
void | initContentType(TypeUse contentType, XSElementDecl source, XmlString defaultValue) |
boolean | isBoxedType() |
void | setSubstitutionHead(CElementInfo substitutionHead) |
String | shortName() |
JType | toType(Outline o, Aspect aspect) |
JPackage | _package() |
For local elements, this points to the parent CClassInfo.
squeezed name
, if any.When using this construction, CElementInfo must not be invoked.
When using this construction, the caller must use CElementInfo 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.
See Also: getSqueezedName
Deprecated: why are you calling a method that returns this?