Package org.apache.xmlbeans
Interface SchemaLocalAttribute
- All Superinterfaces:
SchemaAnnotated,SchemaField
- All Known Subinterfaces:
SchemaGlobalAttribute
- All Known Implementing Classes:
SchemaGlobalAttributeImpl,SchemaLocalAttributeImpl
public interface SchemaLocalAttribute extends SchemaField, SchemaAnnotated
Represents a local or global attribute definition.
-
Field Summary
Fields Modifier and Type Field Description static intOPTIONALAn optional attribute.static intPROHIBITEDA prohibited attribute.static intREQUIREDA required attribute. -
Method Summary
Modifier and Type Method Description intgetUse()Methods inherited from interface org.apache.xmlbeans.SchemaField
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillable
-
Field Details
-
PROHIBITED
static final int PROHIBITEDA prohibited attribute. SeegetUse().- See Also:
- Constant Field Values
-
OPTIONAL
static final int OPTIONALAn optional attribute. SeegetUse().- See Also:
- Constant Field Values
-
REQUIRED
static final int REQUIREDA required attribute. SeegetUse().- See Also:
- Constant Field Values
-
-
Method Details
-
getUse
int getUse()ReturnsPROHIBITED,OPTIONAL, orREQUIRED. (Actually, never returns PROHIBITED because the schema specificaion states that a prohibited attribute is equivalent to no attribute at all, so a prohibited attribute will never be present in the compiled model.)
-