public class AttributeDeclImpl extends ComponentImpl implements XSAttributeDecl, Ref.Attribute
ownerDocument| Constructor and Description |
|---|
AttributeDeclImpl(SchemaDocumentImpl owner,
String _targetNamespace,
String _name,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl _fa,
boolean _anonymous,
XmlString _defValue,
XmlString _fixedValue,
Ref.SimpleType _type) |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(XSFunction function)
Accepts a functor.
|
XSAttributeDecl |
getAttribute() |
XmlString |
getDefaultValue() |
XmlString |
getFixedValue() |
String |
getName()
Gets the (local) name of the declaration.
|
String |
getTargetNamespace()
Target namespace to which this component belongs.
|
XSSimpleType |
getType() |
boolean |
isAnonymous()
Deprecated.
|
boolean |
isGlobal()
Returns true if this declaration is a global declaration.
|
boolean |
isLocal()
Returns true if this declaration is a local declaration.
|
void |
visit(XSVisitor visitor)
Accepts a visitor.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getTargetNamespace, isAnonymous, isGlobal, isLocalgetAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSinglepublic AttributeDeclImpl(SchemaDocumentImpl owner, String _targetNamespace, String _name, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, boolean _anonymous, XmlString _defValue, XmlString _fixedValue, Ref.SimpleType _type)
public XSSimpleType getType()
getType in interface XSAttributeDeclpublic XmlString getDefaultValue()
getDefaultValue in interface XSAttributeDeclpublic XmlString getFixedValue()
getFixedValue in interface XSAttributeDeclpublic void visit(XSVisitor visitor)
XSComponentvisit in interface XSComponentpublic Object apply(XSFunction function)
XSComponentapply in interface XSComponentpublic XSAttributeDecl getAttribute()
getAttribute in interface Ref.Attributepublic String getName()
XSDeclarationgetName in interface XSDeclarationpublic String getTargetNamespace()
XSDeclaration"" is used to represent the default no namespace.getTargetNamespace in interface XSDeclarationpublic boolean isAnonymous()
isAnonymous in interface XSDeclarationpublic final boolean isGlobal()
XSDeclarationisGlobal in interface XSDeclarationpublic final boolean isLocal()
XSDeclaration!isGlobal()isLocal in interface XSDeclarationCopyright © 2005–2017 Oracle Corporation. All rights reserved.