ua.gradsoft.termware.util
Class TransformersStar

java.lang.Object
  extended by ua.gradsoft.termware.util.TransformersStar
All Implemented Interfaces:
Iterable<ITermTransformer>

public class TransformersStar
extends Object
implements Iterable<ITermTransformer>

this is map, where key is pattern-name for transformers.


Constructor Summary
TransformersStar()
          constructor
 
Method Summary
 void add(String patternName, ITermTransformer transformer)
          add transformer for name patterName
 void addDefault(ITermTransformer transformer)
          add transformer for default normalizers set.
 void addRule(Term rule)
          add rule rule .
 SortedSet<String> getNamePatterns()
          get collection of all rule patterns.
 boolean hasOtherwise()
           
 Iterator<ITermTransformer> iterator()
           
 Iterator<ITermTransformer> iterator(String patternName)
          return iterator of transformers for this pattern name.
 void printHelp(PrintStream out)
          print help, embedded into rules to out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformersStar

public TransformersStar()
constructor

Method Detail

add

public void add(String patternName,
                ITermTransformer transformer)
         throws TermWareException
add transformer for name patterName

Throws:
TermWareException

addDefault

public void addDefault(ITermTransformer transformer)
                throws TermWareException
add transformer for default normalizers set.

Throws:
TermWareException

addRule

public void addRule(Term rule)
             throws TermWareException
add rule rule .

Throws:
TermWareException

iterator

public Iterator<ITermTransformer> iterator(String patternName)
return iterator of transformers for this pattern name.


iterator

public Iterator<ITermTransformer> iterator()
Specified by:
iterator in interface Iterable<ITermTransformer>

printHelp

public void printHelp(PrintStream out)
print help, embedded into rules to out


getNamePatterns

public SortedSet<String> getNamePatterns()
get collection of all rule patterns.

Returns:
Collection, where each element is a String (name of pattern).

hasOtherwise

public boolean hasOtherwise()