Package org.apache.xmlbeans
Interface SchemaField
- All Known Subinterfaces:
SchemaGlobalAttribute
,SchemaGlobalElement
,SchemaLocalAttribute
,SchemaLocalElement
- All Known Implementing Classes:
SchemaGlobalAttributeImpl
,SchemaGlobalElementImpl
,SchemaLocalAttributeImpl
,SchemaLocalElementImpl
public interface SchemaField
Represents an element or an attribute declaration.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe default value as plain text.The default value as a strongly-typed value.Returns the maxOccurs value for this particle, or null if it is unbounded.Returns the minOccurs value for this particle.getName()
Returns the form-unqualified-or-qualified name.getType()
Returns the type of this use.Returns user-specific information.boolean
True if this use is an attributeboolean
True if a default is supplied.boolean
isFixed()
True if the value is fixed.boolean
True if nillable; always false for attributes.
-
Method Details
-
getName
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
BigInteger getMinOccurs()Returns the minOccurs value for this particle. If it is not specified explicitly, this defaults to BigInteger.ONE. -
getMaxOccurs
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
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
Object getUserData()Returns user-specific information.- See Also:
-