Class XSWildcardDecl

  • All Implemented Interfaces:
    XSObject, XSTerm, XSWildcard

    public class XSWildcardDecl
    extends Object
    implements XSWildcard
    The XML representation for a wildcard declaration schema component is an <any> or <anyAttribute> element information item
    Version:
    $Id$
    Author:
    Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
    • Field Detail

      • ABSENT

        public static final String ABSENT
      • fType

        public short fType
      • fProcessContents

        public short fProcessContents
      • fNamespaceList

        public String[] fNamespaceList
    • Constructor Detail

      • XSWildcardDecl

        public XSWildcardDecl()
    • Method Detail

      • allowNamespace

        public boolean allowNamespace​(String namespace)
        Validation Rule: Wildcard allows Namespace Name
      • isSubsetOf

        public boolean isSubsetOf​(XSWildcardDecl superWildcard)
        Schema Component Constraint: Wildcard Subset
      • weakerProcessContents

        public boolean weakerProcessContents​(XSWildcardDecl superWildcard)
        Check whether this wildcard has a weaker process contents than the super.
      • performUnionWith

        public XSWildcardDecl performUnionWith​(XSWildcardDecl wildcard,
                                               short processContents)
        Schema Component Constraint: Attribute Wildcard Union
      • performIntersectionWith

        public XSWildcardDecl performIntersectionWith​(XSWildcardDecl wildcard,
                                                      short processContents)
        Schema Component Constraint: Attribute Wildcard Intersection
      • getType

        public short getType()
        Get the type of the object, i.e ELEMENT_DECLARATION.
        Specified by:
        getType in interface XSObject
      • getName

        public String getName()
        The name of this XSObject depending on the XSObject type.
        Specified by:
        getName in interface XSObject
      • getNamespace

        public String getNamespace()
        The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.
        Specified by:
        getNamespace in interface XSObject
      • getConstraintType

        public short getConstraintType()
        Namespace constraint: A constraint type: any, not, list.
        Specified by:
        getConstraintType in interface XSWildcard
      • getNsConstraintList

        public StringList getNsConstraintList()
        Namespace constraint. For constraintType LIST_NSCONSTRAINT, the list contains allowed namespaces. For constraintType NOT_NSCONSTRAINT, the list contains disallowed namespaces.
        Specified by:
        getNsConstraintList in interface XSWildcard
      • getProcessContents

        public short getProcessContents()
        {process contents} One of skip, lax or strict. Valid constants values are: PC_SKIP, PC_LAX, PC_STRICT.
        Specified by:
        getProcessContents in interface XSWildcard
      • getProcessContentsAsString

        public String getProcessContentsAsString()
        String valid of {process contents}. One of "skip", "lax" or "strict".