public class AttributeUseImpl extends ComponentImpl implements XSAttributeUse
| Modifier and Type | Field and Description |
|---|---|
private Ref.Attribute |
att |
private XmlString |
defaultValue |
private XmlString |
fixedValue |
private boolean |
required |
ownerDocument| Constructor and Description |
|---|
AttributeUseImpl(SchemaDocumentImpl owner,
AnnotationImpl ann,
org.xml.sax.Locator loc,
ForeignAttributesImpl fa,
Ref.Attribute _decl,
XmlString def,
XmlString fixed,
boolean req) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(XSFunction f)
Accepts a functor.
|
XSAttributeDecl |
getDecl() |
XmlString |
getDefaultValue()
Gets the default value of this attribute use, if one is specified.
|
XmlString |
getFixedValue()
Gets the fixed value of this attribute use, if one is specified.
|
boolean |
isRequired() |
void |
visit(XSVisitor v)
Accepts a visitor.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingleprivate final Ref.Attribute att
private final XmlString defaultValue
private final XmlString fixedValue
private final boolean required
public AttributeUseImpl(SchemaDocumentImpl owner, AnnotationImpl ann, org.xml.sax.Locator loc, ForeignAttributesImpl fa, Ref.Attribute _decl, XmlString def, XmlString fixed, boolean req)
public XSAttributeDecl getDecl()
getDecl in interface XSAttributeUsepublic XmlString getDefaultValue()
XSAttributeUsegetDefaultValue in interface XSAttributeUsepublic XmlString getFixedValue()
XSAttributeUsegetFixedValue in interface XSAttributeUsepublic boolean isRequired()
isRequired in interface XSAttributeUsepublic java.lang.Object apply(XSFunction f)
XSComponentapply in interface XSComponentpublic void visit(XSVisitor v)
XSComponentvisit in interface XSComponent