Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.description
Class ElementDesc  view ElementDesc download ElementDesc.java

java.lang.Object
  extended byorg.apache.axis.description.FieldDesc
      extended byorg.apache.axis.description.ElementDesc
All Implemented Interfaces:
java.io.Serializable

public class ElementDesc
extends FieldDesc
implements java.io.Serializable

An AttributeDesc is a FieldDesc for an Java field mapping to an XML element


Field Summary
private  javax.xml.namespace.QName arrayType
          If this is an array, this holds the array type
private  javax.xml.namespace.QName itemQName
          If this is a "wrapped" array, this tells us the inner QName
private  int maxOccurs
          The maxOccurs value from the schema
private  int minOccurs
          The minOccurs value from the schema
private  boolean nillable
          The nillable value from the schema.
private  boolean unbounded
          maxOccurs="unbounded"
 
Fields inherited from class org.apache.axis.description.FieldDesc
 
Constructor Summary
ElementDesc()
           
 
Method Summary
 javax.xml.namespace.QName getArrayType()
           
 javax.xml.namespace.QName getItemQName()
           
 int getMaxOccurs()
           
 int getMinOccurs()
           
 boolean isMaxOccursUnbounded()
           
 boolean isMinOccursZero()
          Check if this field can be omitted.
 boolean isNillable()
          Returns value of nillable property.
 void setArrayType(javax.xml.namespace.QName arrayType)
           
 void setItemQName(javax.xml.namespace.QName itemQName)
           
 void setMaxOccurs(int maxOccurs)
           
 void setMaxOccursUnbounded(boolean ubnd)
           
 void setMinOccurs(int minOccurs)
           
 void setNillable(boolean nillable)
          Sets value of nillable property.
 
Methods inherited from class org.apache.axis.description.FieldDesc
getFieldName, getJavaType, getXmlName, getXmlType, isElement, isIndexed, setFieldName, setJavaType, setMinOccursIs0, setXmlName, setXmlType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minOccurs

private int minOccurs
The minOccurs value from the schema


maxOccurs

private int maxOccurs
The maxOccurs value from the schema


nillable

private boolean nillable
The nillable value from the schema. By default, element cannot be nillable.


unbounded

private boolean unbounded
maxOccurs="unbounded"


arrayType

private javax.xml.namespace.QName arrayType
If this is an array, this holds the array type


itemQName

private javax.xml.namespace.QName itemQName
If this is a "wrapped" array, this tells us the inner QName

Constructor Detail

ElementDesc

public ElementDesc()
Method Detail

isMinOccursZero

public boolean isMinOccursZero()
Description copied from class: FieldDesc
Check if this field can be omitted.

Overrides:
isMinOccursZero in class FieldDesc

getMinOccurs

public int getMinOccurs()

setMinOccurs

public void setMinOccurs(int minOccurs)

getMaxOccurs

public int getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(int maxOccurs)

setMaxOccursUnbounded

public void setMaxOccursUnbounded(boolean ubnd)

isMaxOccursUnbounded

public boolean isMaxOccursUnbounded()

isNillable

public boolean isNillable()
Returns value of nillable property.


setNillable

public void setNillable(boolean nillable)
Sets value of nillable property. Default: false.


getArrayType

public javax.xml.namespace.QName getArrayType()

setArrayType

public void setArrayType(javax.xml.namespace.QName arrayType)

getItemQName

public javax.xml.namespace.QName getItemQName()

setItemQName

public void setItemQName(javax.xml.namespace.QName itemQName)