|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.description.TypeDesc
A TypeDesc represents a Java<->XML data binding. It is essentially a collection of FieldDescs describing how to map each field in a Java class to XML.
Field Summary | |
static Class[] |
noClasses
|
static Object[] |
noObjects
|
Constructor Summary | |
TypeDesc(Class javaClass)
|
Method Summary | |
void |
addFieldDesc(FieldDesc field)
Add a new FieldDesc, keeping the convenience fields in sync. |
BeanPropertyDescriptor |
getAnyContentDescriptor()
|
BeanPropertyDescriptor |
getAnyDesc()
|
javax.xml.namespace.QName |
getAttributeNameForField(String fieldName)
Get the QName associated with this field, but only if it's marked as an attribute. |
javax.xml.namespace.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(javax.xml.namespace.QName qname)
Get the field name associated with this QName, but only if it's marked as an attribute. |
String |
getFieldNameForElement(javax.xml.namespace.QName qname)
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. |
javax.xml.namespace.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 |
setPropertyDescriptors(BeanPropertyDescriptor[] propertyDescriptors)
Set the property descriptors for this type, for example in a different order |
void |
setXmlType(javax.xml.namespace.QName xmlType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Class[] noClasses
public static final Object[] noObjects
Constructor Detail |
public TypeDesc(Class javaClass)
Method Detail |
public static void registerTypeDescForClass(Class cls, TypeDesc td)
cls
- the Class we're registering metadata abouttd
- the TypeDesc containing the metadatapublic static TypeDesc getTypeDescForClass(Class cls)
public BeanPropertyDescriptor getAnyDesc()
public FieldDesc[] getFields()
public FieldDesc[] getFields(boolean searchParents)
public void setFields(FieldDesc[] newFields)
public void addFieldDesc(FieldDesc field)
public javax.xml.namespace.QName getElementNameForField(String fieldName)
public javax.xml.namespace.QName getAttributeNameForField(String fieldName)
public String getFieldNameForElement(javax.xml.namespace.QName qname)
public String getFieldNameForAttribute(javax.xml.namespace.QName qname)
public FieldDesc getFieldByName(String name)
public boolean hasAttributes()
public javax.xml.namespace.QName getXmlType()
public void setXmlType(javax.xml.namespace.QName xmlType)
public BeanPropertyDescriptor[] getPropertyDescriptors()
public void setPropertyDescriptors(BeanPropertyDescriptor[] propertyDescriptors)
public BeanPropertyDescriptor getAnyContentDescriptor()
public Map getPropertyDescriptorMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |