com.sun.msv.grammar.util
Class PossibleNamesCollector

java.lang.Object
  |
  +--com.sun.msv.grammar.util.PossibleNamesCollector
All Implemented Interfaces:
NameClassVisitor

public class PossibleNamesCollector
extends Object
implements NameClassVisitor

computes the possible names.

See the description.

Author:
Kohsuke KAWAGUCHI

Field Summary
static String MAGIC
           
 
Constructor Summary
PossibleNamesCollector()
           
 
Method Summary
static Set calc(NameClass nc)
          computes all possibile names for this name class, and returns the set of StringPair.
 Object onAnyName(AnyNameClass nc)
           
 Object onChoice(ChoiceNameClass nc)
           
 Object onDifference(DifferenceNameClass nc)
           
 Object onNot(NotNameClass nc)
           
 Object onNsName(NamespaceNameClass nc)
           
 Object onSimple(SimpleNameClass nc)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC

public static final String MAGIC
Constructor Detail

PossibleNamesCollector

public PossibleNamesCollector()
Method Detail

calc

public static Set calc(NameClass nc)
computes all possibile names for this name class, and returns the set of StringPair.

onChoice

public Object onChoice(ChoiceNameClass nc)
Specified by:
onChoice in interface NameClassVisitor

onAnyName

public Object onAnyName(AnyNameClass nc)
Specified by:
onAnyName in interface NameClassVisitor

onSimple

public Object onSimple(SimpleNameClass nc)
Specified by:
onSimple in interface NameClassVisitor

onNsName

public Object onNsName(NamespaceNameClass nc)
Specified by:
onNsName in interface NameClassVisitor

onNot

public Object onNot(NotNameClass nc)
Specified by:
onNot in interface NameClassVisitor

onDifference

public Object onDifference(DifferenceNameClass nc)
Specified by:
onDifference in interface NameClassVisitor