org.apache.xmlbeans
Interface SchemaField

All Known Subinterfaces:
SchemaGlobalAttribute, SchemaGlobalElement, SchemaLocalAttribute, SchemaLocalElement

public interface SchemaField

Represents an element or an attribute declaration.

See Also:
SchemaType.getContainerField(), SchemaLocalElement, SchemaLocalAttribute

Method Summary
 String getDefaultText()
          The default value as plain text.
 XmlAnySimpleType getDefaultValue()
          The default value as a strongly-typed value.
 BigInteger getMaxOccurs()
          Returns the maxOccurs value for this particle, or null if it is unbounded.
 BigInteger getMinOccurs()
          Returns the minOccurs value for this particle.
 QName getName()
          Returns the form-unqualified-or-qualified name.
 SchemaType getType()
          Returns the type of this use.
 Object getUserData()
          Returns user-specific information.
 boolean isAttribute()
          True if this use is an attribute
 boolean isDefault()
          True if a default is supplied.
 boolean isFixed()
          True if the value is fixed.
 boolean isNillable()
          True if nillable; always false for attributes.
 

Method Detail

getName

public QName getName()
Returns the form-unqualified-or-qualified name.


isAttribute

public boolean isAttribute()
True if this use is an attribute


isNillable

public boolean isNillable()
True if nillable; always false for attributes.


getType

public SchemaType getType()
Returns the type of this use.


getMinOccurs

public BigInteger getMinOccurs()
Returns the minOccurs value for this particle. If it is not specified explicitly, this defaults to BigInteger.ONE.


getMaxOccurs

public BigInteger getMaxOccurs()
Returns the maxOccurs value for this particle, or null if it is unbounded. If it is not specified explicitly, this defaults to BigInteger.ONE.


getDefaultText

public String getDefaultText()
The default value as plain text. See isDefault() and isFixed().


getDefaultValue

public XmlAnySimpleType getDefaultValue()
The default value as a strongly-typed value. See isDefault() and isFixed().


isDefault

public boolean isDefault()
True if a default is supplied. If isFixed(), then isDefault is always true.


isFixed

public boolean isFixed()
True if the value is fixed.


getUserData

public Object getUserData()
Returns user-specific information.

See Also:
SchemaBookmark