public class AttributeDeclImpl extends DeclarationImpl implements XSAttributeDecl, Ref.Attribute
Modifier and Type | Field and Description |
---|---|
private XmlString |
defaultValue |
private XmlString |
fixedValue |
private Ref.SimpleType |
type |
ownerDocument
Constructor and 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) |
Modifier and Type | Method and 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.
|
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
private final Ref.SimpleType type
private final XmlString defaultValue
private final XmlString fixedValue
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)
public XSSimpleType getType()
getType
in interface XSAttributeDecl
public XmlString getDefaultValue()
getDefaultValue
in interface XSAttributeDecl
public XmlString getFixedValue()
getFixedValue
in interface XSAttributeDecl
public void visit(XSVisitor visitor)
XSComponent
visit
in interface XSComponent
public java.lang.Object apply(XSFunction function)
XSComponent
apply
in interface XSComponent
public XSAttributeDecl getAttribute()
getAttribute
in interface Ref.Attribute