FileDocCategorySizeDatePackage
ElementDesc.javaAPI DocApache Axis 1.42816Sat Apr 22 18:57:28 BST 2006org.apache.axis.description

ElementDesc

public class ElementDesc extends FieldDesc implements Serializable
An AttributeDesc is a FieldDesc for an Java field mapping to an XML element
author
Glen Daniels (gdaniels@apache.org)
author
Dominik Kacprzak (dominik@opentoolbox.com)

Fields Summary
private int
minOccurs
The minOccurs value from the schema
private int
maxOccurs
The maxOccurs value from the schema
private boolean
nillable
The nillable value from the schema. By default, element cannot be nillable.
private boolean
unbounded
maxOccurs="unbounded"
private QName
arrayType
If this is an array, this holds the array type
private QName
itemQName
If this is a "wrapped" array, this tells us the inner QName
Constructors Summary
public ElementDesc()


      
        super(true);
    
Methods Summary
public javax.xml.namespace.QNamegetArrayType()

        return arrayType;
    
public javax.xml.namespace.QNamegetItemQName()

        return itemQName;
    
public intgetMaxOccurs()

        return maxOccurs;
    
public intgetMinOccurs()

        return minOccurs;
    
public booleanisMaxOccursUnbounded()

        return unbounded;
    
public booleanisMinOccursZero()

        return minOccurs == 0;
    
public booleanisNillable()
Returns value of nillable property.

return

        return nillable;
    
public voidsetArrayType(javax.xml.namespace.QName arrayType)

        this.arrayType = arrayType;
    
public voidsetItemQName(javax.xml.namespace.QName itemQName)

        this.itemQName = itemQName;
    
public voidsetMaxOccurs(int maxOccurs)

        this.maxOccurs = maxOccurs;
    
public voidsetMaxOccursUnbounded(boolean ubnd)

        this.unbounded = ubnd;
    
public voidsetMinOccurs(int minOccurs)

        this.minOccurs = minOccurs;
    
public voidsetNillable(boolean nillable)
Sets value of nillable property. Default: false.

param
nillable

        this.nillable = nillable;