Package com.sun.xml.xsom.impl
Class AttributesHolder
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.DeclarationImpl
-
- com.sun.xml.xsom.impl.AttributesHolder
-
- All Implemented Interfaces:
XSComponent
,XSDeclaration
- Direct Known Subclasses:
AttGroupDeclImpl
,ComplexTypeImpl
public abstract class AttributesHolder extends DeclarationImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Ref.AttGroup>
attGroups
Ref.AttGroup
s that are directly refered from this.protected java.util.Map<UName,AttributeUseImpl>
attributes
Local attribute use.protected java.util.Set<UName>
prohibitedAtts
prohibited attributes.-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AttributesHolder(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 Modifier and Type Method Description void
addAttGroup(Ref.AttGroup a)
void
addAttributeUse(UName name, AttributeUseImpl a)
void
addProhibitedAttribute(UName name)
java.util.Set<XSAttGroupDecl>
getAttGroups()
java.util.Collection<XSAttributeUse>
getAttributeUses()
Returns the attribute uses by looking at attribute groups and etc.XSAttributeUse
getDeclaredAttributeUse(java.lang.String nsURI, java.lang.String localName)
java.util.Collection<AttributeUseImpl>
getDeclaredAttributeUses()
java.util.Iterator<XSAttGroupDecl>
iterateAttGroups()
java.util.Iterator<XSAttributeUse>
iterateAttributeUses()
java.util.Iterator<AttributeUseImpl>
iterateDeclaredAttributeUses()
abstract void
setWildcard(WildcardImpl wc)
set the local wildcard.-
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
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.AttGroup
s 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()
-
-