Package com.sun.xml.xsom.impl
Class AttributeUseImpl
java.lang.Object
com.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.AttributeUseImpl
- All Implemented Interfaces:
XSAttributeUse,XSComponent
-
Field Summary
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument -
Constructor Summary
ConstructorsConstructorDescriptionAttributeUseImpl(SchemaDocumentImpl owner, AnnotationImpl ann, Locator loc, ForeignAttributesImpl fa, Ref.Attribute _decl, XmlString def, XmlString fixed, boolean req) -
Method Summary
Modifier and TypeMethodDescriptionapply(XSFunction f) Accepts a functor.getDecl()Gets the default value of this attribute use, if one is specified.Gets the fixed value of this attribute use, if one is specified.booleanvoidAccepts a visitor.Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
Constructor Details
-
AttributeUseImpl
public AttributeUseImpl(SchemaDocumentImpl owner, AnnotationImpl ann, Locator loc, ForeignAttributesImpl fa, Ref.Attribute _decl, XmlString def, XmlString fixed, boolean req)
-
-
Method Details
-
getDecl
- Specified by:
getDeclin interfaceXSAttributeUse
-
getDefaultValue
Description copied from interface:XSAttributeUseGets 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.- Specified by:
getDefaultValuein interfaceXSAttributeUse
-
getFixedValue
Description copied from interface:XSAttributeUseGets 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.- Specified by:
getFixedValuein interfaceXSAttributeUse
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceXSAttributeUse
-
apply
Description copied from interface:XSComponentAccepts a functor.- Specified by:
applyin interfaceXSComponent
-
visit
Description copied from interface:XSComponentAccepts a visitor.- Specified by:
visitin interfaceXSComponent
-