# com.bea.xml
SchemaLocalAttribute Interface

public interface SchemaLocalAttribute
extends `SchemaField`

Represents a local or global attribute definition.

All Superinterfaces
  `SchemaField`

All Known Subinterfaces
  `SchemaGlobalAttribute`

## Field Summary

`public static final int` | `OPTIONAL` An optional attribute.
`public static final int` | `PROHIBITED` A prohibited attribute.
`public static final int` | `REQUIRED` A required attribute.

## Method Summary

`public int` | `getUse`() Returns `SchemaLocalAttribute.PROHIBITED```, `SchemaLocalAttribute.OPTIONAL```, or `SchemaLocalAttribute.REQUIRED```.

Methods from interface `com.bea.xml.`SchemaField``
``getDefaultText`, `getDefaultValue`, `getMaxOccurs`, `getMinOccurs`, `getName`, `getType`, `isAttribute`, `isDefault`, `isFixed`, `isNillable``

## Field Detail

### OPTIONAL

    public static final int OPTIONAL

  An optional attribute. See `SchemaLocalAttribute.getUse()```.

### PROHIBITED

    public static final int PROHIBITED

  A prohibited attribute. See `SchemaLocalAttribute.getUse()```.

### REQUIRED

    public static final int REQUIRED

  A required attribute. See `SchemaLocalAttribute.getUse()```.

## Method Detail

### getUse() Method

    public int getUse()

Returns `SchemaLocalAttribute.PROHIBITED```, `SchemaLocalAttribute.OPTIONAL```, or `SchemaLocalAttribute.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.)