Top Fields Constructors Methods
com.sun.xml.xsom.impl

public Class AttributeUseImpl

extends ComponentImpl
implements XSAttributeUse
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.XSAttributeUse, com.sun.xml.xsom.XSComponent
Imports
com.sun.xml.xsom.XSAttributeDecl, .XSAttributeUse, .XmlString, com.sun.xml.xsom.impl.parser.SchemaDocumentImpl, com.sun.xml.xsom.visitor.XSFunction, .XSVisitor, org.xml.sax.Locator

Field Summary

Modifier and TypeField and Description
private final Ref.Attribute
private final XmlString
private final XmlString
private final boolean
Inherited from com.sun.xml.xsom.impl.ComponentImpl:
ownerDocument

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> T
apply(XSFunction<T> f)

Implements com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

public XSAttributeDecl
public XmlString
getDefaultValue()

Implements com.sun.xml.xsom.XSAttributeUse.getDefaultValue.

Gets the default value of this attribute use, if one is specified.

public XmlString
getFixedValue()

Implements com.sun.xml.xsom.XSAttributeUse.getFixedValue.

Gets the fixed value of this attribute use, if one is specified.

public boolean
public void
visit(XSVisitor v)

Implements com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.

Inherited from com.sun.xml.xsom.impl.ComponentImpl:
getAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSingletoString

Field Detail

attback to summary
private final Ref.Attribute att
defaultValueback to summary
private final XmlString defaultValue
fixedValueback to summary
private final XmlString fixedValue
requiredback to summary
private final boolean required

Constructor Detail

AttributeUseImplback to summary
public AttributeUseImpl(SchemaDocumentImpl owner, AnnotationImpl ann, Locator loc, ForeignAttributesImpl fa, Ref.Attribute _decl, XmlString def, XmlString fixed, boolean req)

Method Detail

applyback to summary
public <T> T apply(XSFunction<T> f)

Implements com.sun.xml.xsom.XSComponent.apply.

Doc from com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

getDeclback to summary
public XSAttributeDecl getDecl()

Implements com.sun.xml.xsom.XSAttributeUse.getDecl.

getDefaultValueback to summary
public XmlString getDefaultValue()

Implements com.sun.xml.xsom.XSAttributeUse.getDefaultValue.

Doc from com.sun.xml.xsom.XSAttributeUse.getDefaultValue.

Gets the default value of this attribute use, if one is specified. Note that if a default value is specified in the attribute declaration, this method returns that value.

getFixedValueback to summary
public XmlString getFixedValue()

Implements com.sun.xml.xsom.XSAttributeUse.getFixedValue.

Doc from com.sun.xml.xsom.XSAttributeUse.getFixedValue.

Gets the fixed value of this attribute use, if one is specified. Note that if a fixed value is specified in the attribute declaration, this method returns that value.

isRequiredback to summary
public boolean isRequired()

Implements com.sun.xml.xsom.XSAttributeUse.isRequired.

visitback to summary
public void visit(XSVisitor v)

Implements com.sun.xml.xsom.XSComponent.visit.

Doc from com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.