net.sf.farrago.catalog
Class MockMetadataFactory.JmiPrinter
java.lang.Object
net.sf.farrago.catalog.MockMetadataFactory.JmiVisitor
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlOutput
protected final org.eigenbase.xom.XMLOutput xmlOutput
MockMetadataFactory.JmiPrinter
protected MockMetadataFactory.JmiPrinter(PrintWriter pw)
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)