org.jboss.axis.description
Class FieldDesc

java.lang.Object
  extended byorg.jboss.axis.description.FieldDesc
Direct Known Subclasses:
AttributeDesc (src) , ElementDesc (src)

public abstract class FieldDesc
extends java.lang.Object

FieldDescs are metadata objects which control the mapping of a given Java field to/from XML.


Constructor Summary
FieldDesc()
           
 
Method Summary
 java.lang.String getFieldName()
          Obtain the field name.
 java.lang.Class getJavaType()
           
 QName (src) getXmlName()
          Obtain the XML QName for this field
 QName (src) getXmlType()
          Returns the XML type (e.g.
 boolean isAttribute()
          Check if this is an attribute.
 boolean isElement()
          Check if this is an element
 boolean isIndexed()
           
 boolean isMinOccursZero()
          Check if this field can be omitted.
 void setFieldName(java.lang.String fieldName)
          Set the field name.
 void setJavaType(java.lang.Class javaType)
           
 void setMinOccursIs0(boolean minOccursIs0)
          Deprecated. this functionality, which is only relevant to ElementDescs, now lives in ElementDesc and is more flexible (you can set minOccurs and maxOccurs as you please)
 void setXmlName(QName (src)  xmlName)
          Set the XML QName for this field
 void setXmlType(QName (src)  xmlType)
          Returns the XML type (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDesc

public FieldDesc()
Method Detail

getFieldName

public java.lang.String getFieldName()
Obtain the field name.


setFieldName

public void setFieldName(java.lang.String fieldName)
Set the field name.


getXmlName

public QName (src)  getXmlName()
Obtain the XML QName for this field


setXmlName

public void setXmlName(QName (src)  xmlName)
Set the XML QName for this field


getJavaType

public java.lang.Class getJavaType()

setJavaType

public void setJavaType(java.lang.Class javaType)

getXmlType

public QName (src)  getXmlType()
Returns the XML type (e.g. xsd:string) for this field


setXmlType

public void setXmlType(QName (src)  xmlType)
Returns the XML type (e.g. xsd:string) for this field


isElement

public boolean isElement()
Check if this is an element

Returns:
true if this is an ElementDesc

isAttribute

public boolean isAttribute()
Check if this is an attribute.

Returns:
true if an AttributeDesc

isIndexed

public boolean isIndexed()

isMinOccursZero

public boolean isMinOccursZero()
Check if this field can be omitted.


setMinOccursIs0

public void setMinOccursIs0(boolean minOccursIs0)
Deprecated. this functionality, which is only relevant to ElementDescs, now lives in ElementDesc and is more flexible (you can set minOccurs and maxOccurs as you please)

Parameters:
minOccursIs0 -