FileDocCategorySizeDatePackage
XSAttributeUseImpl.javaAPI DocApache Xerces 3.0.14829Fri Sep 14 20:33:56 BST 2007org.apache.xerces.impl.xs

XSAttributeUseImpl

public class XSAttributeUseImpl extends Object implements org.apache.xerces.xs.XSAttributeUse
The XML representation for an attribute use schema component is a local <attribute> element information item
xerces.internal
author
Sandy Gao, IBM
version
$Id: XSAttributeUseImpl.java 545988 2007-06-11 02:00:30Z mrglavas $

Fields Summary
public XSAttributeDecl
fAttrDecl
public short
fUse
public short
fConstraintType
public org.apache.xerces.impl.dv.ValidatedInfo
fDefault
public org.apache.xerces.xs.XSObjectList
fAnnotations
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualVC()

        return getConstraintType() == XSConstants.VC_NONE ?
               null :
               fDefault.actualValue;
    
public shortgetActualVCType()

        return getConstraintType() == XSConstants.VC_NONE ?
               XSConstants.UNAVAILABLE_DT :
               fDefault.actualValueType;
    
public org.apache.xerces.xs.XSObjectListgetAnnotations()
Optional. Annotations.

        return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
    
public org.apache.xerces.xs.XSAttributeDeclarationgetAttrDeclaration()
{attribute declaration} provides the attribute declaration itself, which will in turn determine the simple type definition used.

        return fAttrDecl;
    
public shortgetConstraintType()
Value Constraint: one of default, fixed.

        return fConstraintType;
    
public java.lang.StringgetConstraintValue()
Value Constraint: The actual value (with respect to the {type definition}).

        // REVISIT: SCAPI: what's the proper representation
        return getConstraintType() == XSConstants.VC_NONE ?
               null :
               fDefault.stringValue();
    
public org.apache.xerces.xs.ShortListgetItemValueTypes()

        return getConstraintType() == XSConstants.VC_NONE ?
               null :
               fDefault.itemValueTypes;
    
public java.lang.StringgetName()
The name of this XSObject depending on the XSObject type.

        return null;
    
public java.lang.StringgetNamespace()
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

        return null;
    
public org.apache.xerces.xs.XSNamespaceItemgetNamespaceItem()

see
org.apache.xerces.xs.XSObject#getNamespaceItem()

        return null;
    
public booleangetRequired()
{required} determines whether this use of an attribute declaration requires an appropriate attribute information item to be present, or merely allows it.

        return fUse == SchemaSymbols.USE_REQUIRED;
    
public shortgetType()
Get the type of the object, i.e ELEMENT_DECLARATION.

        return XSConstants.ATTRIBUTE_USE;
    
public voidreset()

    
      
        fDefault = null;
        fAttrDecl = null;
        fUse = SchemaSymbols.USE_OPTIONAL;
        fConstraintType = XSConstants.VC_NONE;
        fAnnotations = null;