ElementInfo implementation for the compile-time model.
As an NType, it represents the Java representation of this element
(either JAXBElement<T> or Foo).
| Modifier and Type | Field and Description |
|---|---|
| private String | className
If this element produces its own class, the short name of that class. |
| private final Model | |
| public final 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.
For local elements, this points to the parent |
| private CElementPropertyInfo | |
| private String | squeezedName
Custom |
| private CElementInfo | |
| private Set | substitutionMembers
Lazily computed. |
| private final QName | |
| private NType | type
Represents |
| Access | Constructor and Description |
|---|---|
| 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. |
| className | back to summary |
|---|---|
| private String className If this element produces its own class, the short name of that class. Otherwise null. | |
| model | back to summary |
|---|---|
| private final Model model
| |
| parent | back to summary |
|---|---|
| public final 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.
For local elements, this points to the parent | |
| property | back to summary |
|---|---|
| private CElementPropertyInfo property | |
| squeezedName | back to summary |
|---|---|
| private String squeezedName Custom | |
| substitutionHead | back to summary |
|---|---|
| private CElementInfo substitutionHead | |
| substitutionMembers | back to summary |
|---|---|
| private Set<CElementInfo> substitutionMembers Lazily computed. | |
| tagName | back to summary |
|---|---|
| private final QName tagName | |
| type | back to summary |
|---|---|
| private NType type Represents | |
| CElementInfo | back to 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.
When using this construction, | |
| CElementInfo | back to summary |
|---|---|
| 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
| |
| _package | back to summary |
|---|---|
| public JPackage _package() | |
| accept | back to summary |
|---|---|
| public <T> T accept(CClassInfoParent. Implements com.
| |
| fullName | back to summary |
|---|---|
| public String fullName() Implements com. Doc from com. Human readable name of this type.
| |
| getContentInMemoryType | back to summary |
|---|---|
| public NType getContentInMemoryType() Implements org. Doc from org. T of This is tied to the in-memory representation.
| |
| getContentType | back to summary |
|---|---|
| public CNonElement getContentType() Implements org. Doc from org. Short for
| |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() | |
| getElementName | back to summary |
|---|---|
| public QName getElementName() Implements org. Doc from org. Gets the element name of the class.
| |
| getOwnerPackage | back to summary |
|---|---|
| public JPackage getOwnerPackage() Implements com. Doc from com. Gets the nearest
| |
| getProperty | back to summary |
|---|---|
| public CElementPropertyInfo getProperty() Implements org. Doc from org. Gets the object that represents the value property.
| |
| getScope | back to summary |
|---|---|
| public CClassInfo getScope() Implements org. Doc from org. If non-null, this element is only active inside the given scope.
| |
| getSqueezedName | back to summary |
|---|---|
| public String getSqueezedName() Returns the "squeezed name" of this element.
| |
| getSubstitutionHead | back to summary |
|---|---|
| public CElementInfo getSubstitutionHead() Implements org. Doc from org. If this element can substitute another element, return that element. Substitutability of elements are transitive. can only substitute .
| |
| getSubstitutionMembers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. All the s whose
| |
| getType | back to summary |
|---|---|
| public NType getType() Implements org. Doc from org. Deprecated why are you calling a method that returns this? Returns the representation for This returns the signature in Java and thus isn't affected by the adapter.
| |
| hasClass | back to summary |
|---|---|
| public boolean hasClass() True if this element has its own class
(as opposed to be represented as an instance of | |
| initContentType | back to summary |
|---|---|
| public void initContentType(TypeUse contentType, XSElementDecl source, XmlString defaultValue) | |
| isBoxedType | back to summary |
|---|---|
| public boolean isBoxedType() Implements com. Doc from com. Returns true iff this type represents a class that has a unboxed form.
For example, for
| |
| setSubstitutionHead | back to summary |
|---|---|
| public void setSubstitutionHead(CElementInfo substitutionHead) | |
| shortName | back to summary |
|---|---|
| public String shortName() | |
| toType | back to summary |
|---|---|
| public JType toType(Outline o, Aspect aspect) Implements com. Doc from com. Returns the representation of this type in code model.
This operation requires the whole model to be built,
and hence it takes Under some code generation strategy, some bean classes are considered implementation specific (such as impl.FooImpl class) These classes always have accompanying "exposed" type (such as the Foo interface). For such Jekyll and Hyde type, the aspect parameter determines which personality is returned.
| |