org.apache.xmlbeans
Interface SchemaLocalAttribute

All Superinterfaces:
SchemaField
All Known Subinterfaces:
SchemaGlobalAttribute

public interface SchemaLocalAttribute
extends SchemaField

Represents a local or global attribute definition.


Field Summary
static int OPTIONAL
          An optional attribute.
static int PROHIBITED
          A prohibited attribute.
static int REQUIRED
          A required attribute.
 
Method Summary
 int getUse()
          Returns PROHIBITED, OPTIONAL, or REQUIRED.
 
Methods inherited from interface org.apache.xmlbeans.SchemaField
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, isAttribute, isDefault, isFixed, isNillable
 

Field Detail

PROHIBITED

public static final int PROHIBITED
A prohibited attribute. See getUse().

See Also:
Constant Field Values

OPTIONAL

public static final int OPTIONAL
An optional attribute. See getUse().

See Also:
Constant Field Values

REQUIRED

public static final int REQUIRED
A required attribute. See getUse().

See Also:
Constant Field Values
Method Detail

getUse

public int getUse()
Returns PROHIBITED, OPTIONAL, or REQUIRED. (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.)