net.sf.farrago.catalog
Class MockMetadataFactory.JmiPrinter

java.lang.Object
  extended by net.sf.farrago.catalog.MockMetadataFactory.JmiVisitor
      extended by net.sf.farrago.catalog.MockMetadataFactory.JmiPrinter
Enclosing class:
MockMetadataFactory

public static class MockMetadataFactory.JmiPrinter
extends MockMetadataFactory.JmiVisitor

Formats a JMI object as XML.


Field Summary
protected  org.eigenbase.xom.XMLOutput xmlOutput
           
 
Constructor Summary
protected MockMetadataFactory.JmiPrinter(PrintWriter pw)
           
 
Method Summary
protected  String getTagName(Object o)
           
protected  void onAttribute(String attrName, Object attrValue)
           
protected  void onCollection(String collectionName, List list)
           
protected  void onElement(Object o)
           
protected  void onRef(String refName, RefBaseObject ref)
           
protected  void visit(Object o, List<String> attrNames, List<Object> attrValues, List<String> collectionNames, List<Collection<?>> collectionValues, List<String> refNames, List<RefBaseObject> refValues)
           
 
Methods inherited from class net.sf.farrago.catalog.MockMetadataFactory.JmiVisitor
accept, extractProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlOutput

protected final org.eigenbase.xom.XMLOutput xmlOutput
Constructor Detail

MockMetadataFactory.JmiPrinter

protected MockMetadataFactory.JmiPrinter(PrintWriter pw)
Method Detail

visit

protected void visit(Object o,
                     List<String> attrNames,
                     List<Object> attrValues,
                     List<String> collectionNames,
                     List<Collection<?>> collectionValues,
                     List<String> refNames,
                     List<RefBaseObject> refValues)
Specified by:
visit in class MockMetadataFactory.JmiVisitor

onCollection

protected void onCollection(String collectionName,
                            List list)

onRef

protected void onRef(String refName,
                     RefBaseObject ref)

onAttribute

protected void onAttribute(String attrName,
                           Object attrValue)

onElement

protected void onElement(Object o)

getTagName

protected String getTagName(Object o)