com.sun.tools.xjc.model
public final class CClassInfo extends AbstractCElement implements ClassInfo<NType,NClass>, CClassInfoParent, CClass, NClass
Schema parsers build these objects.
Field Summary | |
---|---|
CClass | baseClass |
QName | elementName
If this class also gets XmlRootElement, the class name. |
String | implClass
Optional user-specified implementation override class. |
String | javadoc
TODO: revisit this design.
we should at least do a basic encapsulation to avoid careless
mistakes. |
Model | model
The Model object to which this bean belongs. |
CClassInfoParent | parent |
String | shortName
short name. |
String | squeezedName
Custom squeezed name , if any. |
Constructor Summary | |
---|---|
CClassInfo(Model model, JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) | |
CClassInfo(Model model, CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) | |
CClassInfo(Model model, JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations) |
Method Summary | |
---|---|
<T> T | accept(Visitor<T> visitor) |
void | addConstructor(String... fieldNames) Creates a new constructor declaration and adds it. |
void | addProperty(CPropertyInfo prop)
Adds a new property. |
Element<NType,NClass> | asElement() |
boolean | declaresAttributeWildcard()
Returns true if a new attribute wildcard property needs to be
declared on this class. |
String | fullName()
Returns the FQCN of this bean. |
CClassInfo | getBaseClass()
This inherited version returns null if this class extends from CClassRef.
|
NClass | getClazz() |
Collection<? extends Constructor> | getConstructors() list all constructor declarations. |
QName | getElementName() |
CNonElement | getInfo()
Guaranteed to return this. |
String | getName() |
JPackage | getOwnerPackage() |
List<CPropertyInfo> | getProperties()
Returns a mutable list. |
CPropertyInfo | getProperty(String name)
Gets a propery by name. |
CClassRef | getRefBaseClass() |
CClassInfo | getScope() |
String | getSqueezedName()
Returns the "squeezed name" of this bean token.
|
CClassInfo | getSubstitutionHead() |
NClass | getType() |
QName | getTypeName() |
String | getUserSpecifiedImplClass() |
boolean | hasAttributeWildcard() |
void | hasAttributeWildcard(boolean hasAttributeWildcard) |
boolean | hasProperties() |
boolean | hasSubClasses() |
boolean | hasValueProperty() |
boolean | inheritsAttributeWildcard()
Returns true if this class inherits a wildcard attribute property
from its ancestor classes. |
boolean | isBoxedType() |
boolean | isElement() |
boolean | isFinal() |
boolean | isOrdered() |
boolean | isSimpleType() |
Iterator<CClassInfo> | listSubclasses()
Enumerates all the sub-classes of this class. |
CClassInfoParent | parent() |
void | setBaseClass(CClass base)
This method accepts both CClassInfo (which means the base class
is also generated), or CClassRef (which means the base class is
already generated and simply referenced.)
|
void | setOrdered(boolean value) |
void | setUserSpecifiedImplClass(String implClass) |
String | toString() |
JClass | toType(Outline o, Aspect aspect) |
void | _implements(JClass c) |
squeezed name
, if any.See Also: getRefBaseClass
The squeezed name of a bean is the concatenation of the names of its outer classes and itself.
Thus if the bean is "org.acme.foo.Bean", then the squeezed name is "Bean", if the bean is "org.acme.foo.Outer1.Outer2.Bean", then "Outer1Outer2Bean".
This is used by the code generator
Deprecated: if you are calling this method directly, you must be doing something wrong.