sk.baka.xml.schematic.msv.tools
Class Representatives

java.lang.Object
  extended by sk.baka.xml.schematic.msv.tools.Representatives

public final class Representatives
extends Object

For given set of ElementExp s tries to find their representatives. A representative for ElementExp is a QName of element, that only this ElementExp accepts.

Author:
Martin Vysny

Constructor Summary
Representatives()
           
 
Method Summary
static Map<QName,Set<com.sun.msv.grammar.ElementExp>> compute(Set<com.sun.msv.grammar.ElementExp> elementExps)
          For given set of ElementExp s tries to find their representatives.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Representatives

public Representatives()
Method Detail

compute

public static Map<QName,Set<com.sun.msv.grammar.ElementExp>> compute(Set<com.sun.msv.grammar.ElementExp> elementExps)
For given set of ElementExp s tries to find their representatives.

Parameters:
elementExps - set of ElementExp instances.
Returns:
Map, where key is the QName of representative, and value is Set of ElementExp s, that are represented by this QName.


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.