com.sun.msv.generator
Class ElementDeclCollector

java.lang.Object
  extended byExpressionWalker
      extended bycom.sun.msv.generator.ElementDeclCollector

public class ElementDeclCollector
extends ExpressionWalker

collects all distinct element declaration in the grammar. As a side effect, it also collects all distinct attribute declarations.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Method Summary
static Set[] collect(Expression exp)
          collects all element and attribute declarations.
 void onAttribute(AttributeExp exp)
           
 void onConcur(ConcurExp exp)
           
 void onElement(ElementExp exp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onConcur

public void onConcur(ConcurExp exp)

onElement

public void onElement(ElementExp exp)

onAttribute

public void onAttribute(AttributeExp exp)

collect

public static Set[] collect(Expression exp)
collects all element and attribute declarations.

Returns:
r[0] : set of all distinct ElementExps.
r[1] : set of all distinct AttributeExps.