Class AttributesHolder

    • 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.
    • Method Detail

      • setWildcard

        public abstract void setWildcard​(WildcardImpl wc)
        set the local wildcard.
      • 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 in ComplexTypeImpl.
      • 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()
      • iterateAttGroups

        public java.util.Iterator<XSAttGroupDecl> iterateAttGroups()
      • getName

        public java.lang.String getName()
        Description copied from interface: XSDeclaration
        Gets the (local) name of the declaration.
        Specified by:
        getName in interface XSDeclaration
        null if this component is anonymous.
      • getTargetNamespace

        public java.lang.String getTargetNamespace()
        Description copied from interface: XSDeclaration
        Target namespace to which this component belongs. "" is used to represent the default no namespace.
        Specified by:
        getTargetNamespace in interface XSDeclaration
      • isGlobal

        public final boolean isGlobal()
        Description copied from interface: XSDeclaration
        Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.
        Specified by:
        isGlobal in interface XSDeclaration
      • isLocal

        public final boolean isLocal()
        Description copied from interface: XSDeclaration
        Returns true if this declaration is a local declaration. Equivalent of !isGlobal()
        Specified by:
        isLocal in interface XSDeclaration