if (use != null) _attribute.setUse(use);
if (use != null) { if (_attribute.isDefault() && (use != AttributeDecl.USE_OPTIONAL) ) throw new IllegalArgumentException("When 'default' is present, the 'use' attribute must have the value 'optional'."); _attribute.setUse(use); }
    public AttributeUnmarshaller        (Schema schema, AttributeList atts, Resolver resolver)    {        super();        this._schema = schema;        setResolver(resolver);        if (atts.getValue(SchemaNames.REF_ATTR) != null) {            String err = "Attribute references are currently not supported.";            throw new IllegalStateException(err);        }                String name = atts.getValue(SchemaNames.NAME_ATTR);                _attribute = new AttributeDecl(schema, name);        //-- form (Not yet supported)        //_attribute.setForm(...);                //-- id        _attribute.setId(atts.getValue(SchemaNames.ID_ATTR));                //-- value        _attribute.setValue(atts.getValue(SchemaNames.VALUE_ATTR));        //-- use        String use = atts.getValue(SchemaNames.USE_ATTR);        if (use != null) _attribute.setUse(use);                //-- type        String type = atts.getValue("type");        if (type != null) {            _attribute.setSimpleTypeReference(type);        }    } //-- AttributeUnmarshaller