站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

FieldDesc (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.description
Class FieldDesc

java.lang.Object
  extended byorg.apache.axis.description.FieldDesc
Direct Known Subclasses:
AttributeDesc, ElementDesc

public abstract class FieldDesc
extends Object

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

Author:
Glen Daniels (gdaniels@apache.org)

Constructor Summary
FieldDesc()
           
 
Method Summary
 String getFieldName()
          Obtain the field name.
 Class getJavaType()
           
 javax.xml.namespace.QName getXmlName()
          Obtain the XML QName for this field
 javax.xml.namespace.QName 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(String fieldName)
          Set the field name.
 void setJavaType(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(javax.xml.namespace.QName xmlName)
          Set the XML QName for this field
 void setXmlType(javax.xml.namespace.QName 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 String getFieldName()
Obtain the field name.


setFieldName

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


getXmlName

public javax.xml.namespace.QName getXmlName()
Obtain the XML QName for this field


setXmlName

public void setXmlName(javax.xml.namespace.QName xmlName)
Set the XML QName for this field


getJavaType

public Class getJavaType()

setJavaType

public void setJavaType(Class javaType)

getXmlType

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


setXmlType

public void setXmlType(javax.xml.namespace.QName 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 -


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.