com.sun.msv.grammar.util
Class NameClassCollisionChecker

java.lang.Object
  extended by com.sun.msv.grammar.util.NameClassComparator
      extended by com.sun.msv.grammar.util.NameClassCollisionChecker
All Implemented Interfaces:
NameClassVisitor

public class NameClassCollisionChecker
extends NameClassComparator

Computes if two name classes collide or not.

This comparator returns true if the intersection of two name classes is non empty.

The same thing can be computed by using the NameClass.intersection(NameClass, NameClass) method, but generally this method is faster.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.grammar.util.NameClassComparator
eureka, nc1, nc2
 
Constructor Summary
NameClassCollisionChecker()
           
 
Method Summary
protected  void probe(String uri, String local)
          Throw eureka to return true from the probe method.
 
Methods inherited from class com.sun.msv.grammar.util.NameClassComparator
check, onAnyName, onChoice, onDifference, onNot, onNsName, onSimple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameClassCollisionChecker

public NameClassCollisionChecker()
Method Detail

probe

protected void probe(String uri,
                     String local)
Description copied from class: NameClassComparator
Throw eureka to return true from the probe method.

Specified by:
probe in class NameClassComparator


MSV