Package com.sun.xml.xsom.impl
Class AttributeDeclImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.DeclarationImpl
-
- com.sun.xml.xsom.impl.AttributeDeclImpl
-
- All Implemented Interfaces:
Ref.Attribute
,XSAttributeDecl
,XSComponent
,XSDeclaration
public class AttributeDeclImpl extends DeclarationImpl implements XSAttributeDecl, Ref.Attribute
-
-
Field Summary
Fields Modifier and Type Field Description private XmlString
defaultValue
private XmlString
fixedValue
private Ref.SimpleType
type
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description AttributeDeclImpl(SchemaDocumentImpl owner, java.lang.String _targetNamespace, java.lang.String _name, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous, XmlString _defValue, XmlString _fixedValue, Ref.SimpleType _type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(XSFunction function)
Accepts a functor.XSAttributeDecl
getAttribute()
XmlString
getDefaultValue()
XmlString
getFixedValue()
XSSimpleType
getType()
void
visit(XSVisitor visitor)
Accepts a visitor.-
Methods inherited from class com.sun.xml.xsom.impl.DeclarationImpl
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
Methods inherited from interface com.sun.xml.xsom.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
-
-
-
Field Detail
-
type
private final Ref.SimpleType type
-
defaultValue
private final XmlString defaultValue
-
fixedValue
private final XmlString fixedValue
-
-
Constructor Detail
-
AttributeDeclImpl
public AttributeDeclImpl(SchemaDocumentImpl owner, java.lang.String _targetNamespace, java.lang.String _name, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous, XmlString _defValue, XmlString _fixedValue, Ref.SimpleType _type)
-
-
Method Detail
-
getType
public XSSimpleType getType()
- Specified by:
getType
in interfaceXSAttributeDecl
-
getDefaultValue
public XmlString getDefaultValue()
- Specified by:
getDefaultValue
in interfaceXSAttributeDecl
-
getFixedValue
public XmlString getFixedValue()
- Specified by:
getFixedValue
in interfaceXSAttributeDecl
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
apply
public java.lang.Object apply(XSFunction function)
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
getAttribute
public XSAttributeDecl getAttribute()
- Specified by:
getAttribute
in interfaceRef.Attribute
-
-