Package org.apache.xmlbeans
Interface SchemaField
-
- All Known Subinterfaces:
SchemaGlobalAttribute,SchemaGlobalElement,SchemaLocalAttribute,SchemaLocalElement
- All Known Implementing Classes:
SchemaGlobalAttributeImpl,SchemaGlobalElementImpl,SchemaLocalAttributeImpl,SchemaLocalElementImpl
public interface SchemaFieldRepresents an element or an attribute declaration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDefaultText()The default value as plain text.XmlAnySimpleTypegetDefaultValue()The default value as a strongly-typed value.java.math.BigIntegergetMaxOccurs()Returns the maxOccurs value for this particle, or null if it is unbounded.java.math.BigIntegergetMinOccurs()Returns the minOccurs value for this particle.javax.xml.namespace.QNamegetName()Returns the form-unqualified-or-qualified name.SchemaTypegetType()Returns the type of this use.java.lang.ObjectgetUserData()Returns user-specific information.booleanisAttribute()True if this use is an attributebooleanisDefault()True if a default is supplied.booleanisFixed()True if the value is fixed.booleanisNillable()True if nillable; always false for attributes.
-
-
-
Method Detail
-
getName
javax.xml.namespace.QName getName()
Returns the form-unqualified-or-qualified name.
-
isAttribute
boolean isAttribute()
True if this use is an attribute
-
isNillable
boolean isNillable()
True if nillable; always false for attributes.
-
getType
SchemaType getType()
Returns the type of this use.
-
getMinOccurs
java.math.BigInteger getMinOccurs()
Returns the minOccurs value for this particle. If it is not specified explicitly, this defaults to BigInteger.ONE.
-
getMaxOccurs
java.math.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
java.lang.String getDefaultText()
The default value as plain text. SeeisDefault()andisFixed().
-
getDefaultValue
XmlAnySimpleType getDefaultValue()
The default value as a strongly-typed value. SeeisDefault()andisFixed().
-
isDefault
boolean isDefault()
True if a default is supplied. IfisFixed(), then isDefault is always true.
-
isFixed
boolean isFixed()
True if the value is fixed.
-
getUserData
java.lang.Object getUserData()
Returns user-specific information.- See Also:
SchemaBookmark
-
-