- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.AttributesHolder
-
- All Implemented Interfaces:
XSComponent,XSDeclaration
- Direct Known Subclasses:
AttGroupDeclImpl,ComplexTypeImpl
public abstract class AttributesHolder extends ComponentImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Ref.AttGroup>attGroupsRef.AttGroups that are directly refered from this.protected java.util.Map<UName,AttributeUseImpl>attributesLocal attribute use.protected java.util.Set<UName>prohibitedAttsprohibited attributes.-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, org.xml.sax.Locator loc, ForeignAttributesImpl _fa, java.lang.String _name, boolean _anonymous)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAttGroup(Ref.AttGroup a)voidaddAttributeUse(UName name, AttributeUseImpl a)voidaddProhibitedAttribute(UName name)java.util.Set<XSAttGroupDecl>getAttGroups()java.util.Collection<XSAttributeUse>getAttributeUses()Returns the attribute uses by looking at attribute groups and etc.XSAttributeUsegetDeclaredAttributeUse(java.lang.String nsURI, java.lang.String localName)java.util.Collection<AttributeUseImpl>getDeclaredAttributeUses()java.lang.StringgetName()Gets the (local) name of the declaration.java.lang.StringgetTargetNamespace()Target namespace to which this component belongs.booleanisAnonymous()Deprecated.booleanisGlobal()Returns true if this declaration is a global declaration.booleanisLocal()Returns true if this declaration is a local declaration.java.util.Iterator<XSAttGroupDecl>iterateAttGroups()java.util.Iterator<XSAttributeUse>iterateAttributeUses()java.util.Iterator<AttributeUseImpl>iterateDeclaredAttributeUses()abstract voidsetWildcard(WildcardImpl wc)set the local wildcard.-
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
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
-
-
-
Field Detail
-
attributes
protected final java.util.Map<UName,AttributeUseImpl> attributes
Local attribute use. Use linked hash map to guarantee the iteration order, and make it close to what was in the schema document.
-
prohibitedAtts
protected final java.util.Set<UName> prohibitedAtts
prohibited attributes.
-
attGroups
protected final java.util.Set<Ref.AttGroup> attGroups
Ref.AttGroups that are directly refered from this.
-
-
Constructor Detail
-
AttributesHolder
protected AttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, org.xml.sax.Locator loc, ForeignAttributesImpl _fa, java.lang.String _name, boolean _anonymous)
-
-
Method Detail
-
setWildcard
public abstract void setWildcard(WildcardImpl wc)
set the local wildcard.
-
addAttributeUse
public void addAttributeUse(UName name, AttributeUseImpl a)
-
addProhibitedAttribute
public void addProhibitedAttribute(UName name)
-
getAttributeUses
public java.util.Collection<XSAttributeUse> getAttributeUses()
Returns the attribute uses by looking at attribute groups and etc. Searching for the base type is done inComplexTypeImpl.
-
iterateAttributeUses
public java.util.Iterator<XSAttributeUse> iterateAttributeUses()
-
getDeclaredAttributeUse
public XSAttributeUse getDeclaredAttributeUse(java.lang.String nsURI, java.lang.String localName)
-
iterateDeclaredAttributeUses
public java.util.Iterator<AttributeUseImpl> iterateDeclaredAttributeUses()
-
getDeclaredAttributeUses
public java.util.Collection<AttributeUseImpl> getDeclaredAttributeUses()
-
addAttGroup
public void addAttGroup(Ref.AttGroup a)
-
iterateAttGroups
public java.util.Iterator<XSAttGroupDecl> iterateAttGroups()
-
getAttGroups
public java.util.Set<XSAttGroupDecl> getAttGroups()
-
getName
public java.lang.String getName()
Description copied from interface:XSDeclarationGets the (local) name of the declaration.- Specified by:
getNamein interfaceXSDeclaration- Returns:
- null if this component is anonymous.
-
getTargetNamespace
public java.lang.String getTargetNamespace()
Description copied from interface:XSDeclarationTarget namespace to which this component belongs.""is used to represent the default no namespace.- Specified by:
getTargetNamespacein interfaceXSDeclaration
-
isAnonymous
public boolean isAnonymous()
Deprecated.- Specified by:
isAnonymousin interfaceXSDeclaration
-
isGlobal
public final boolean isGlobal()
Description copied from interface:XSDeclarationReturns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.- Specified by:
isGlobalin interfaceXSDeclaration
-
isLocal
public final boolean isLocal()
Description copied from interface:XSDeclarationReturns true if this declaration is a local declaration. Equivalent of!isGlobal()- Specified by:
isLocalin interfaceXSDeclaration
-
-