org.jbind.xml.schema.cmp
Class Wildcard
java.lang.Object
org.jbind.xml.schema.cmp.Wildcard
- All Implemented Interfaces:
- IWildcard
- public class Wildcard
- extends java.lang.Object
- implements IWildcard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Wildcard
public Wildcard(boolean anIsNegative,
java.util.Set aNamespaces,
ProcessContentsType aProcessContentsType)
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)