Top Fields Constructors Methods
com.sun.xml.xsom.impl

public abstract Class AttributesHolder

extends DeclarationImpl
Class Inheritance
Known Direct Subclasses
com.sun.xml.xsom.impl.ComplexTypeImpl, com.sun.xml.xsom.impl.AttGroupDeclImpl
Imports
com.sun.xml.xsom.XSAttGroupDecl, .XSAttributeUse, com.sun.xml.xsom.impl.parser.SchemaDocumentImpl, com.sun.xml.xsom.impl.scd.Iterators, com.sun.xml.xsom.impl.Ref.AttGroup, org.xml.sax.Locator, java.util.AbstractSet, .ArrayList, .Collection, .HashSet, .Iterator, .List, .Map, .Set, .LinkedHashMap

Field Summary

Modifier and TypeField and Description
protected final Set<Ref.AttGroup>
attGroups

Ref.AttGroups that are directly refered from this.

protected final Map<UName, AttributeUseImpl>
attributes

Local attribute use.

protected final Set<UName>
prohibitedAtts

prohibited attributes.

Constructor Summary

AccessConstructor and Description
protected
AttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public Set<XSAttGroupDecl>
public Collection<XSAttributeUse>
getAttributeUses()

Returns the attribute uses by looking at attribute groups and etc. Searching for the base type is done in ComplexTypeImpl.

public XSAttributeUse
public Collection<AttributeUseImpl>
public Iterator<XSAttGroupDecl>
public Iterator<XSAttributeUse>
public Iterator<AttributeUseImpl>
public abstract void
setWildcard(WildcardImpl wc)

set the local wildcard.

Inherited from com.sun.xml.xsom.impl.DeclarationImpl:
getNamegetTargetNamespaceisAnonymousisGlobalisLocal

Field Detail

attGroupsback to summary
protected final Set<Ref.AttGroup> attGroups

Ref.AttGroups that are directly refered from this.

attributesback to summary
protected final 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.

prohibitedAttsback to summary
protected final Set<UName> prohibitedAtts

prohibited attributes.

Constructor Detail

AttributesHolderback to summary
protected AttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous)

Method Detail

addAttGroupback to summary
public void addAttGroup(Ref.AttGroup a)
addAttributeUseback to summary
public void addAttributeUse(UName name, AttributeUseImpl a)
addProhibitedAttributeback to summary
public void addProhibitedAttribute(UName name)
getAttGroupsback to summary
public Set<XSAttGroupDecl> getAttGroups()
getAttributeUsesback to summary
public Collection<XSAttributeUse> getAttributeUses()

Returns the attribute uses by looking at attribute groups and etc. Searching for the base type is done in ComplexTypeImpl.

getDeclaredAttributeUseback to summary
public XSAttributeUse getDeclaredAttributeUse(String nsURI, String localName)
getDeclaredAttributeUsesback to summary
public Collection<AttributeUseImpl> getDeclaredAttributeUses()
iterateAttGroupsback to summary
public Iterator<XSAttGroupDecl> iterateAttGroups()
iterateAttributeUsesback to summary
public Iterator<XSAttributeUse> iterateAttributeUses()
iterateDeclaredAttributeUsesback to summary
public Iterator<AttributeUseImpl> iterateDeclaredAttributeUses()
setWildcardback to summary
public abstract void setWildcard(WildcardImpl wc)

set the local wildcard.