All the JAXB annotations are already reflected to the model so that the caller doesn't have to worry about them. For this reason, you cannot access annotations on properties.
A JAXB-bound class always have at least one representation (called "type representation"),but it can optionally have another representation ("element representation").
In the type representaion, a class
is represented as a set of attributes and (elements or values).
You can inspect the details of those attributes/elements/values by getProperties().
This representation corresponds to a complex/simple type in XML Schema.
You can obtain the schema type name by getTypeName().
If a class has an element representation, isElement() returns true.
This representation is mostly similar to the type representation
except that the whoe attributes/elements/values are wrapped into
one element. You can obtain the name of this element through asElement().
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public ClassInfo | Returns: null if this info extends fromObject.Obtains the information about the base class. |
| public C | |
| public String | |
| public List | Returns: always non-null, but can be empty.Returns all the properties newly declared in this class. |
| public PropertyInfo | Returns: null if the property was not found.Gets the property that has the specified name. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | inheritsAttributeWildcard()
Returns true iff this class inherits a wildcard attribute from its ancestor classes. |
| public boolean | |
| public boolean | |
| public boolean |
| declaresAttributeWildcard | back to summary |
|---|---|
| public boolean declaresAttributeWildcard() Returns true iff this class declares a wildcard attribute. | |
| getBaseClass | back to summary |
|---|---|
| public ClassInfo Obtains the information about the base class. | |
| getClazz | back to summary |
|---|---|
| public C getClazz() Gets the declaration this object is wrapping. | |
| getName | back to summary |
|---|---|
| public String getName() Gets the fully-qualified name of the class. | |
| getProperties | back to summary |
|---|---|
| public List Returns all the properties newly declared in this class. This excludes properties defined in the super class.
If the properties are
Properties marked with
| |
| getProperty | back to summary |
|---|---|
| public PropertyInfo Gets the property that has the specified name. This is just a convenience method for:
for( PropertyInfo p : getProperties() ) {
if(p.getName().equals(name))
return p;
}
return null;
| |
| hasAttributeWildcard | back to summary |
|---|---|
| public boolean hasAttributeWildcard() Returns true if this bean class has an attribute wildcard. This is true if the class declares an attribute wildcard, or it is inherited from its super classes.
| |
| hasProperties | back to summary |
|---|---|
| public boolean hasProperties() If the class has properties, return true. This is only
true if the Collection object returned by | |
| hasSubClasses | back to summary |
|---|---|
| public boolean hasSubClasses() True if there's a known sub-type of this class in | |
| hasValueProperty | back to summary |
|---|---|
| public boolean hasValueProperty() Returns true if this class or its ancestor has | |
| inheritsAttributeWildcard | back to summary |
|---|---|
| public boolean inheritsAttributeWildcard() Returns true iff this class inherits a wildcard attribute from its ancestor classes. | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() If this class is abstract and thus shall never be directly instanciated. | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal() If this class is marked as final and no further extension/restriction is allowed. | |
| isOrdered | back to summary |
|---|---|
| public boolean isOrdered() Returns true if the properties of this class is ordered in XML. False if it't not.
In RELAX NG context, ordered properties mean | |