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 int
OPTIONAL
An optional attribute.static int
PROHIBITED
A prohibited attribute.static int
REQUIRED
A required attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getUse()
-
Methods inherited from interface org.apache.xmlbeans.SchemaAnnotated
getAnnotation
-
Methods inherited from interface org.apache.xmlbeans.SchemaField
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillable
-
-
-
-
Field Detail
-
PROHIBITED
static final int PROHIBITED
A prohibited attribute. SeegetUse()
.- See Also:
- Constant Field Values
-
OPTIONAL
static final int OPTIONAL
An optional attribute. SeegetUse()
.- See Also:
- Constant Field Values
-
REQUIRED
static final int REQUIRED
A required attribute. SeegetUse()
.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.)
-
-