uci.uml.ocl
Class OCLExpander
java.lang.Object
|
+--uci.uml.ocl.OCLExpander
- public class OCLExpander
- extends Object
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
OCLExpander
public OCLExpander(Hashtable templates)
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)