FileDocCategorySizeDatePackage
XSAttributeUseImpl.javaAPI DocJava SE 6 API4350Tue Jun 10 00:22:44 BST 2008com.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
xerces.internal
author
Sandy Gao, IBM
version
$Id: XSAttributeUseImpl.java,v 1.2.6.1 2005/09/09 07:30:54 sunithareddy Exp $

Fields Summary
public XSAttributeDecl
fAttrDecl
public short
fUse
public short
fConstraintType
public ValidatedInfo
fDefault
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 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 != null && fDefault.actualValue != null) ?
                       fDefault.actualValue.toString() : null);
    
public com.sun.org.apache.xerces.internal.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 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;