Class UnionSimpleTypeImpl

    • Method Detail

      • iterator

        public java.util.Iterator<XSSimpleType> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<XSSimpleType>
      • getFacet

        public XSFacet getFacet​(java.lang.String name)
        Description copied from interface: XSSimpleType
        Gets the effective facet object of the given name.

        For example, if a simple type "foo" is derived from xs:string by restriction with the "maxLength" facet and another simple type "bar" is derived from "foo" by restriction with another "maxLength" facet, this method will return the latter one, because that is the most restrictive, effective facet.

        For those facets that can have multiple values (pattern facets and enumeration facets), this method will return only the first one. TODO: allow clients to access all of them by some means.

        Specified by:
        getFacet in interface XSSimpleType
        Returns:
        If this datatype has a facet of the given name, return that object. If the facet is not specified anywhere in its derivation chain, null will be returned.
      • getName

        public java.lang.String getName()
        Description copied from interface: XSDeclaration
        Gets the (local) name of the declaration.
        Specified by:
        getName in interface XSDeclaration
        Returns:
        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