Class SchemaSetImpl.AnyType

    • Constructor Detail

      • AnyType

        AnyType()
    • Method Detail

      • isAbstract

        public boolean isAbstract()
        Description copied from interface: XSComplexType
        Checks if this complex type is declared as an abstract type.
        Specified by:
        isAbstract in interface XSComplexType
      • getAttributeUse

        public XSAttributeUse getAttributeUse​(java.lang.String nsURI,
                                              java.lang.String localName)
        Description copied from interface: XSAttContainer
        Looks for the attribute use with the specified name from all the attribute uses that are directly/indirectly referenced from this component.

        This is the exact implementation of the "attribute use" schema component.

        Specified by:
        getAttributeUse in interface XSAttContainer
      • iterateAttributeUses

        public java.util.Iterator<XSAttributeUse> iterateAttributeUses()
        Description copied from interface: XSAttContainer
        Lists all the attribute uses that are directly/indirectly referenced from this component.

        This is the exact implementation of the "attribute use" schema component.

        Specified by:
        iterateAttributeUses in interface XSAttContainer
      • getDeclaredAttributeUse

        public XSAttributeUse getDeclaredAttributeUse​(java.lang.String nsURI,
                                                      java.lang.String localName)
        Description copied from interface: XSAttContainer
        Looks for the attribute use with the specified name from the attribute uses which are declared in this complex type. This does not include att uses declared in att groups that are referenced from this complex type, nor does include att uses declared in base types.
        Specified by:
        getDeclaredAttributeUse in interface XSAttContainer
      • isSubstitutionProhibited

        public boolean isSubstitutionProhibited​(int i)
        Description copied from interface: XSComplexType
        Roughly corresponds to the block attribute. But see the spec for gory detail.
        Specified by:
        isSubstitutionProhibited in interface XSComplexType
      • getExplicitContent

        public XSContentType getExplicitContent()
        Description copied from interface: XSComplexType
        Gets the explicit content of a complex type with a complex content that was derived by extension.

        Informally, the "explicit content" is the portion of the content model added in this derivation. IOW, it's a delta between the base complex type and this complex type.

        For example, when a complex type T2 derives fom T1, then:

         content type of T2 = SEQUENCE( content type of T1, explicit content of T2 )
         
        Specified by:
        getExplicitContent in interface XSComplexType
        Returns:
        If this complex type is derived by restriction or has a simple content, this method returns null. IOW, this method only works for a complex type with a complex content derived by extension from another complex type.
      • getBaseType

        public XSType getBaseType()
        Description copied from interface: XSType
        Returns the base type of this type. Note that if this type represents xs:anyType, this method returns itself. This is awkward as an API, but it follows the schema specification.
        Specified by:
        getBaseType in interface XSType
        Returns:
        always non-null.
      • asSimpleType

        public XSSimpleType asSimpleType()
        Description copied from interface: XSType
        Casts this object to XSSimpleType if possible, otherwise returns null.
        Specified by:
        asSimpleType in interface XSType
      • asComplexType

        public XSComplexType asComplexType()
        Description copied from interface: XSType
        Casts this object to XSComplexType if possible, otherwise returns null.
        Specified by:
        asComplexType in interface XSType
      • isDerivedFrom

        public boolean isDerivedFrom​(XSType t)
        Description copied from interface: XSType
        Returns true if this type is derived from the specified type.

        Note that t.isDerivedFrom(t) returns true.

        Specified by:
        isDerivedFrom in interface XSType
      • isSimpleType

        public boolean isSimpleType()
        Description copied from interface: XSType
        Returns true if this instanceof XSSimpleType.
        Specified by:
        isSimpleType in interface XSType
      • isComplexType

        public boolean isComplexType()
        Description copied from interface: XSType
        Returns true if this instanceof XSComplexType.
        Specified by:
        isComplexType in interface XSType
      • getScope

        public XSElementDecl getScope()
        Description copied from interface: XSComplexType
        Gets the scope of this complex type. This is not a property defined in the schema spec.
        Specified by:
        getScope in interface XSComplexType
        Returns:
        null if this complex type is global. Otherwise return the element declaration that contains this anonymous complex type.
      • getType

        public XSType getType()
        Description copied from interface: Ref.Type
        Obtains a reference as a type.
        Specified by:
        getType in interface Ref.Type
      • getRedefinedCount

        public int getRedefinedCount()
        Description copied from interface: XSType
        Returns the number of complex types that redefine this component.

        For example, if A is redefined by B and B is redefined by C, A.getRedefinedCount()==2, B.getRedefinedCount()==1, and C.getRedefinedCount()==0.

        Specified by:
        getRedefinedCount in interface XSType
      • listSubstitutables

        public XSType[] listSubstitutables()
        Description copied from interface: XSType
        Lists up types that can substitute this type by using xsi:type. Includes this type itself.

        This method honors the block flag.

        Specified by:
        listSubstitutables in interface XSType
      • getSubtypes

        public java.util.List<XSComplexType> getSubtypes()
        Description copied from interface: XSComplexType
        Returns a list of direct subtypes of this complex type. If the type is not subtyped, returns empty list. Doesn't return null. Note that the complex type may be extended outside of the scope of the schemaset known to XSOM.
        Specified by:
        getSubtypes in interface XSComplexType
        Returns: