org.jbind.xml.schema.cmp
Class Wildcard

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Wildcard
All Implemented Interfaces:
IWildcard

public class Wildcard
extends java.lang.Object
implements IWildcard


Constructor Summary
Wildcard(boolean anIsNegative, java.util.Set aNamespaces, ProcessContentsType aProcessContentsType)
           
 
Method Summary
 boolean equals(IWildcard aWildcard)
           
 boolean getIsNegative()
          Determines if the namespaces in the namespace set are the allowed namespaces or if they are the prohibited namespaces.
 java.util.Set getNamespaces()
          Gets the namespace set.
 ProcessContentsType getProcessContentsType()
           
 IWildcard intersect(IWildcard aWildcard, ProcessContentsType aProcessContentsType)
           
 boolean isAllowed(IDataRefOrDecl aDecl)
           
 boolean isAllowed(IRef aRef)
           
 boolean isAllowed(java.lang.String aNamespace)
           
 boolean isSubset(IWildcard aWildcard)
          Checks if this wildcard is a subset of the specified wildcard.
 IWildcard negate()
           
 IWildcard union(IWildcard aWildcard, ProcessContentsType aProcessContentsType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wildcard

public Wildcard(boolean anIsNegative,
                java.util.Set aNamespaces,
                ProcessContentsType aProcessContentsType)
Method Detail

getIsNegative

public boolean getIsNegative()
Description copied from interface: IWildcard
Determines if the namespaces in the namespace set are the allowed namespaces or if they are the prohibited namespaces.

Specified by:
getIsNegative in interface IWildcard
Returns:
Returns true iff the namespace set contains the allowed namespaces.

getNamespaces

public java.util.Set getNamespaces()
Description copied from interface: IWildcard
Gets the namespace set.

Specified by:
getNamespaces in interface IWildcard
Returns:
(required). A set of namespace strings.

getProcessContentsType

public ProcessContentsType getProcessContentsType()
Specified by:
getProcessContentsType in interface IWildcard

isAllowed

public boolean isAllowed(IDataRefOrDecl aDecl)
Specified by:
isAllowed in interface IWildcard

isAllowed

public boolean isAllowed(IRef aRef)
Specified by:
isAllowed in interface IWildcard

isAllowed

public boolean isAllowed(java.lang.String aNamespace)
Specified by:
isAllowed in interface IWildcard

union

public IWildcard union(IWildcard aWildcard,
                       ProcessContentsType aProcessContentsType)
Specified by:
union in interface IWildcard

negate

public IWildcard negate()
Specified by:
negate in interface IWildcard

intersect

public IWildcard intersect(IWildcard aWildcard,
                           ProcessContentsType aProcessContentsType)
Specified by:
intersect in interface IWildcard

isSubset

public boolean isSubset(IWildcard aWildcard)
Description copied from interface: IWildcard
Checks if this wildcard is a subset of the specified wildcard.

Specified by:
isSubset in interface IWildcard
Returns:
Returns true iff this wildcard is a subset of the specified wildcard.

equals

public boolean equals(IWildcard aWildcard)