org.apache.axis.description
public class TypeDesc extends Object implements Serializable
| Field Summary | |
|---|---|
| static Class[] | noClasses |
| static Object[] | noObjects |
| Constructor Summary | |
|---|---|
| TypeDesc(Class javaClass)
Creates a new TypeDesc instance. | |
| TypeDesc(Class javaClass, boolean canSearchParents)
Creates a new TypeDesc instance.
| |
| Method Summary | |
|---|---|
| void | addFieldDesc(FieldDesc field)
Add a new FieldDesc, keeping the convenience fields in sync. |
| BeanPropertyDescriptor | getAnyContentDescriptor() |
| BeanPropertyDescriptor | getAnyDesc() |
| QName | getAttributeNameForField(String fieldName)
Get the QName associated with this field, but only if it's
marked as an attribute. |
| QName | getElementNameForField(String fieldName)
Get the QName associated with this field, but only if it's
marked as an element. |
| FieldDesc | getFieldByName(String name)
Get a FieldDesc by field name. |
| String | getFieldNameForAttribute(QName qname)
Get the field name associated with this QName, but only if it's
marked as an attribute. |
| String | getFieldNameForElement(QName qname, boolean ignoreNS)
Get the field name associated with this QName, but only if it's
marked as an element.
|
| FieldDesc[] | getFields()
Obtain the current array of FieldDescs |
| FieldDesc[] | getFields(boolean searchParents) |
| Map | getPropertyDescriptorMap()
Get/Cache the property descriptor map |
| BeanPropertyDescriptor[] | getPropertyDescriptors()
Get/Cache the property descriptors |
| static TypeDesc | getTypeDescForClass(Class cls)
Static function for centralizing access to type metadata for a
given class.
|
| QName | getXmlType() |
| boolean | hasAttributes()
Do we have any FieldDescs marked as attributes? |
| static void | registerTypeDescForClass(Class cls, TypeDesc td)
Static function to explicitly register a type description for
a given class.
|
| void | setFields(FieldDesc[] newFields)
Replace the array of FieldDescs, making sure we keep our convenience
caches in sync. |
| void | setXmlType(QName xmlType) |
TypeDesc instance. The type desc can search
the metadata of its type'sparent classes.
Parameters: javaClass a Class value
TypeDesc instance.
Parameters: javaClass a Class value canSearchParents whether the type desc can search the metadata of
its type's parent classes.
Returns: Map with key=propertyName, value=descriptor
Returns: PropertyDescriptor
Parameters: cls the Class we're registering metadata about td the TypeDesc containing the metadata