| Modifier and Type | Field and Description |
|---|---|
| public JType | baseType
If the base type of the property is overriden, this field is set to non-null. |
| private final CCustomizations | |
| public CDefaultValue | defaultValue
If non-null, keeps the default value in Java representation. |
| public boolean | inlineBinaryData
Property annotated with |
| private final boolean | |
| public String | javadoc
Javadoc for this property. |
| public final Locator | |
| private CClassInfo | |
| private String | |
| private String | |
| public FieldRenderer | realization
Specifies how the field is generated by the backend. |
| private final XSComponent |
| Access | Constructor and Description |
|---|---|
| protected | CPropertyInfo(String name, boolean collection, XSComponent source, CCustomizations customizations, Locator locator)
|
| Modifier and Type | Method and Description |
|---|---|
| public abstract <V> V | |
| public abstract <R, P> R | |
| public QName | Returns: null if no conflict was found. Otherwise return the QName that has the collision.Puts the element names that this property possesses to the map, so that we can find two properties that own the same element name, which is an error. |
| public String | displayName()
Implements org. Gets the display name of the property. |
| public abstract CAdapter | |
| public CCustomizations | getCustomizations()
Implements com. Gets the list of customizations attached to this model component. |
| public Locator | getLocator()
Implements com. Gets the source location in the schema from which this model component is created. |
| public String | getName()
Implements org.
Deprecated
marked as deprecated so that we can spot the use of this method.
Name of the property. |
| public String | getName(boolean
if true, this method returns a name like "FooBar", which
should be used as a seed for generating user-visible names
(such as accessors like "getFooBar".)
isPublic)if false, this method returns the "name of the property" as defined in the j2s side of the spec. This name is usually something like "fooBar", which often corresponds to the XML element/attribute name of this property (for taking advantage of annotation defaulting as much as possible) Gets the name of the property. |
| public final XSComponent | Returns: null if the model is built from sources other than XML Schema (such as DTD.)Implements com. If this model object is built from XML Schema, this property returns a schema component from which the model is built. |
| public final boolean | hasAnnotation(Class<? extends Annotation> annotationType)
Implements org. Returns true if the property has the specified annotation. |
| public boolean | inlineBinaryData()
Implements org. If this is true and this property indeed represents a binary data, it should be always inlined. |
| public boolean | isCollection()
Implements org. Returns true if this is a multi-valued collection property. |
| public boolean | isOptionalPrimitive()
Returns true if this property needs to represent null just for the purpose of representing an absence of the property. |
| public boolean | |
| protected static boolean | needsExplicitTypeName(TypeUse type, QName typeName)
Checks if the given |
| public CTypeInfo | parent()
Implements org. Gets the |
| public final <A extends Annotation> A | readAnnotation(Class<A> annotationType)
Implements org. Gets the value of the specified annotation from the given property. |
| public abstract Collection | ref()
Redeclares org. List of |
| public void | |
| pack-priv final void |
| baseType | back to summary |
|---|---|
| public JType baseType If the base type of the property is overriden, this field is set to non-null. | |
| customizations | back to summary |
|---|---|
| private final CCustomizations customizations | |
| defaultValue | back to summary |
|---|---|
| public CDefaultValue defaultValue If non-null, keeps the default value in Java representation.
If | |
| inlineBinaryData | back to summary |
|---|---|
| public boolean inlineBinaryData Property annotated with | |
| isCollection | back to summary |
|---|---|
| private final boolean isCollection | |
| javadoc | back to summary |
|---|---|
| public String javadoc Javadoc for this property. Must not be null. | |
| locator | back to summary |
|---|---|
| public final Locator locator
| |
| parent | back to summary |
|---|---|
| private CClassInfo parent
| |
| privateName | back to summary |
|---|---|
| private String privateName | |
| publicName | back to summary |
|---|---|
| private String publicName | |
| realization | back to summary |
|---|---|
| public FieldRenderer realization Specifies how the field is generated by the backend. | |
| source | back to summary |
|---|---|
private final XSComponent source
| |
| CPropertyInfo | back to summary |
|---|---|
| protected CPropertyInfo(String name, boolean collection, XSComponent source, CCustomizations customizations, Locator locator) | |
| accept | back to summary |
|---|---|
| public abstract <V> V accept(CPropertyVisitor<V> visitor) | |
| accept | back to summary |
|---|---|
| public abstract <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) | |
| collectElementNames | back to summary |
|---|---|
| public QName collectElementNames(Map<QName, CPropertyInfo> table) Puts the element names that this property possesses to the map, so that we can find two properties that own the same element name, which is an error.
| |
| displayName | back to summary |
|---|---|
| public String displayName() Implements org. Doc from org. Gets the display name of the property.
This is a convenience method for
| |
| getAdapter | back to summary |
|---|---|
| public abstract CAdapter getAdapter() Redeclares org.
| |
| getCustomizations | back to summary |
|---|---|
| public CCustomizations getCustomizations() Implements com. Doc from com. Gets the list of customizations attached to this model component.
| |
| getLocator | back to summary |
|---|---|
| public Locator getLocator() Implements com. Doc from com. Gets the source location in the schema from which this model component is created.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Deprecated marked as deprecated so that we can spot the use of this method. Name of the property. This method is implemented to follow the contract of , and therefore it always returns the name of the annotated field. This name is normally not useful for the rest of XJC, which usually wants to access the "public name" of the property. A "public name" of the property is a name like "FooBar" which is used as a seed for generating the accessor methods. This is the name controlled by the schema customization via users.
If the caller is calling this method statically, it's usually
the sign of a mistake. Use
| |
| getName | back to summary |
|---|---|
| public String getName(boolean isPublic) Gets the name of the property.
| |
| getSchemaComponent | back to summary |
|---|---|
| public final XSComponent getSchemaComponent() Implements com. If this model object is built from XML Schema, this property returns a schema component from which the model is built.
| |
| hasAnnotation | back to summary |
|---|---|
| public final boolean hasAnnotation(Class<? extends Annotation> annotationType) Implements org. Doc from org. Returns true if the property has the specified annotation.
Short for
| |
| inlineBinaryData | back to summary |
|---|---|
| public boolean inlineBinaryData() Implements org. Doc from org. If this is true and this property indeed represents a binary data, it should be always inlined.
| |
| isCollection | back to summary |
|---|---|
| public boolean isCollection() Implements org. Doc from org. Returns true if this is a multi-valued collection property. Otherwise false, in which case the property is a single value.
| |
| isOptionalPrimitive | back to summary |
|---|---|
| public boolean isOptionalPrimitive() Returns true if this property needs to represent null just for the purpose of representing an absence of the property. | |
| isUnboxable | back to summary |
|---|---|
| public boolean isUnboxable() Returns true if this property is "unboxable".
In general, a property often has to be capable of representing null
to indicate the absence of the value. This requires properties
to be generated as Fortunately, there are cases where we know that the property can never legally be absent. When this condition holds we can generate the optimized "unboxed form". The exact such conditions depend on the kind of properties, so refer to the implementation code for the details. This method returns true when the property can be generated as "unboxed form", false otherwise. When this property is a collection, this method returns true if items in the collection is unboxable. Obviously, the collection itself is always a reference type. | |
| needsExplicitTypeName | back to summary |
|---|---|
| protected static boolean needsExplicitTypeName(TypeUse type, QName typeName) Checks if the given | |
| parent | back to summary |
|---|---|
| public CTypeInfo parent() Implements org. Doc from org. Gets the
| |
| readAnnotation | back to summary |
|---|---|
| public final <A extends Annotation> A readAnnotation(Class<A> annotationType) Implements org. Doc from org. Gets the value of the specified annotation from the given property. When this method is used for a property that consists of a getter and setter, it returns the annotation on either of those methods. If both methods have the same annotation, it is an error.
| |
| ref | back to summary |
|---|---|
| public abstract Collection Redeclares org. Doc from org. List of
| |
| setName | back to summary |
|---|---|
| public void setName(boolean isPublic, String newName) Overrides the name of the property.
This method can be used from | |
| setParent | back to summary |
|---|---|
| pack-priv final void setParent(CClassInfo parent) | |