uci.uml.ocl
Class OCLExpander

java.lang.Object
  |
  +--uci.uml.ocl.OCLExpander

public class OCLExpander
extends Object


Field Summary
 Hashtable _bindings
           
 Hashtable _templates
           
 boolean _useXMLEscapes
           
static String OCL_END
           
static String OCL_START
           
 
Constructor Summary
OCLExpander(Hashtable templates)
           
 
Method Summary
 void expand(Writer w, Object target, String prefix, String suffix)
           
protected  void expandLine(PrintWriter pw, String line, Object target, String prefix, String suffix)
           
 Vector findTemplatesFor(Object target)
          Find the Vector of templates that could apply to this target object.
protected  String replaceAll(String s, String pat, String rep)
           
protected  String replaceWithXMLEscapes(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OCL_START

public static String OCL_START

OCL_END

public static String OCL_END

_templates

public Hashtable _templates

_bindings

public Hashtable _bindings

_useXMLEscapes

public boolean _useXMLEscapes
Constructor Detail

OCLExpander

public OCLExpander(Hashtable templates)
Method Detail

expand

public void expand(Writer w,
                   Object target,
                   String prefix,
                   String suffix)

expandLine

protected void expandLine(PrintWriter pw,
                          String line,
                          Object target,
                          String prefix,
                          String suffix)

findTemplatesFor

public Vector findTemplatesFor(Object target)
Find the Vector of templates that could apply to this target object. That includes the templates for its class and all superclasses. Needs-More-Work: should cache.

replaceWithXMLEscapes

protected String replaceWithXMLEscapes(String s)

replaceAll

protected String replaceAll(String s,
                            String pat,
                            String rep)