FileDocCategorySizeDatePackage
XSAttributeUseImpl.javaAPI DocJava SE 5 API6032Fri Aug 26 14:55:50 BST 2005com.sun.org.apache.xerces.internal.impl.xs

XSAttributeUseImpl

public class XSAttributeUseImpl extends Object implements XSAttributeUse
The XML representation for an attribute use schema component is a local element information item
author
Sandy Gao, IBM
version
$Id: XSAttributeUseImpl.java,v 1.5 2003/11/12 23:17:33 sandygao Exp $

Fields Summary
public XSAttributeDecl
fAttrDecl
public short
fUse
public short
fConstraintType
public ValidatedInfo
fDefault
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualVC()

        return fDefault.actualValue;
    
public shortgetActualVCType()

        return fDefault.actualValueType;
    
public com.sun.org.apache.xerces.internal.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.actualValue.toString();
    
public com.sun.org.apache.xerces.internal.xs.ShortListgetItemValueTypes()

        return 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 com.sun.org.apache.xerces.internal.xs.XSNamespaceItemgetNamespaceItem()

see
com.sun.org.apache.xerces.internal.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;