|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gxml.xs.SmNamespaceConstraint<S>
public final class SmNamespaceConstraint<S>
Implementation for a {namespace constraint} property of a wildcard.
Objects of this class are immutable and can only be created via the static "include" and "exclude" methods. The static constant "Any" represents the "##any" namespace constraint.
Nested Class Summary | |
---|---|
static class |
SmNamespaceConstraint.Mode
|
Method Summary | ||
---|---|---|
boolean |
allowsNamespaceName(S namespaceURI)
Validation Rule: Wildcard allows Namespace Name. |
|
static
|
Any(SmNameBridge<S> nameBridge)
Singleton implementation of the namespace constraint allowing any namespaces. |
|
boolean |
equals(org.gxml.xs.Object obj)
|
|
static
|
exclude(S namespace,
SmNameBridge<S> nameBridge)
Constructs a namespace constraint equivalent to not and a namespace. |
|
SmNamespaceConstraint.Mode |
getMode()
Returns the mode in which this namespace constraint is operating. |
|
java.lang.Iterable<S> |
getNamespaces()
Returns the set of namespaces applicable in SmNamespaceConstraint.Mode.Include and SmNamespaceConstraint.Mode.Exclude . |
|
static
|
include(java.util.Set<S> namespaces,
SmNameBridge<S> nameBridge)
Constructs a namespace constraint equivalent to allowing a set of namespaces. |
|
SmNamespaceConstraint<S> |
intersection(SmNamespaceConstraint<S> other)
Calculates the intersection of this namespace constraint and another namespace constraint. |
|
boolean |
isSubset(SmNamespaceConstraint<S> superSet)
Determines whether this namespace constraint is a subset of another namespace constraint. |
|
static
|
NotAbsent(SmNameBridge<S> nameBridge)
Internal Singleton for Not and Absent |
|
SmNamespaceConstraint<S> |
union(SmNamespaceConstraint<S> other)
Calculates the union of this namespace constraint and another namespace constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <S> SmNamespaceConstraint<S> Any(SmNameBridge<S> nameBridge)
nameBridge
- public static <S> SmNamespaceConstraint<S> exclude(S namespace, SmNameBridge<S> nameBridge)
public static <S> SmNamespaceConstraint<S> include(java.util.Set<S> namespaces, SmNameBridge<S> nameBridge)
public static <S> SmNamespaceConstraint<S> NotAbsent(SmNameBridge<S> nameBridge)
public boolean allowsNamespaceName(S namespaceURI)
public boolean equals(org.gxml.xs.Object obj)
public SmNamespaceConstraint.Mode getMode()
public java.lang.Iterable<S> getNamespaces()
SmNamespaceConstraint.Mode.Include
and SmNamespaceConstraint.Mode.Exclude
.
public SmNamespaceConstraint<S> intersection(SmNamespaceConstraint<S> other) throws SmWildcardIntersectionException
other
- The other namespace constraint.
SmWildcardIntersectionException
public boolean isSubset(SmNamespaceConstraint<S> superSet)
superSet
- The other namespace constraint.public SmNamespaceConstraint<S> union(SmNamespaceConstraint<S> other) throws SmWildcardUnionException
other
- The other namespace constraint.
SmWildcardUnionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |