org.rcsb.openmms.meta
Class TransVisitor
java.lang.Object
|
+--org.rcsb.openmms.meta.TransVisitor
- Direct Known Subclasses:
- CatWriter, EntryWriter, GenAccessMethods, GenCifParents, GenConstants, GenDictionary, IdlWriter, LinkWriter, ModelDtdWriter, SqlWriter, VImplWriter
- public class TransVisitor
- extends java.lang.Object
Base class TransVisitor or "Transformation Visitor".
MMSExpr uses the "Visitor" design pattern (see Gamma et. al.)
to traverse the metamodel heirarchy. This superclass provides
empty (default) implementations for all the Visitor subclasses
- Version:
- 1.3
- Author:
- Douglas S. Greer
Field Summary |
protected java.lang.String |
indent
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indent
protected java.lang.String indent
TransVisitor
public TransVisitor()
writeCopyright
public void writeCopyright()
writeCopyright
public void writeCopyright(StringStruct ss)
setIndentString
public void setIndentString(java.lang.String s)
open
public void open(java.lang.String fname)
throws TransGenException
TransGenException
close
public void close()
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
writeStr
public void writeStr(StringStruct oss,
java.lang.String[] sl,
int ilev)
throws java.io.IOException
java.io.IOException
writeStr
public void writeStr(java.lang.String[] sl)
throws java.io.IOException
java.io.IOException
writeStr
public void writeStr(StringStruct oss,
java.lang.String s,
int ilev)
throws java.io.IOException
java.io.IOException
writeBuffer
public void writeBuffer(StringStruct a)
writeStr
public void writeStr(java.lang.String s)
throws java.io.IOException
java.io.IOException
openRoot
public void openRoot(RootTrans rt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeRoot
public void closeRoot(RootTrans rt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openFile
public void openFile(FileTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeFile
public void closeFile(FileTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openModule
public void openModule(ModuleTrans mt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeModule
public void closeModule(ModuleTrans mt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openInterface
public void openInterface(InterfaceTrans it)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeInterface
public void closeInterface(InterfaceTrans it)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openCategory
public void openCategory(CategoryTrans ct)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeCategory
public void closeCategory(CategoryTrans ct)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openStructure
public void openStructure(StructureTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeStructure
public void closeStructure(StructureTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openValuetype
public void openValuetype(ValuetypeTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeValuetype
public void closeValuetype(ValuetypeTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openMethod
public void openMethod(MethodTrans mt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeMethod
public void closeMethod(MethodTrans mt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openGetListMethod
public void openGetListMethod(GetListMethodTrans glmt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeGetListMethod
public void closeGetListMethod(GetListMethodTrans glmt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openField
public void openField(FieldTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeField
public void closeField(FieldTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openSubfield
public void openSubfield(SubfieldTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeSubfield
public void closeSubfield(SubfieldTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openVector
public void openVector(VectorTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeVector
public void closeVector(VectorTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openMatrix
public void openMatrix(MatrixTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeMatrix
public void closeMatrix(MatrixTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createList
public void createList(ListTrans lt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createTypeDef
public void createTypeDef(TypeDefTrans lt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createDirective
public void createDirective(DirectiveTrans dt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createConstant
public void createConstant(ConstantTrans dt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createSequence
public void createSequence(SequenceTrans lt)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
openException
public void openException(ExceptionTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
closeException
public void closeException(ExceptionTrans st)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
createExceptionField
public void createExceptionField(ExceptionFieldTrans ft)
throws java.io.IOException,
TransGenException
java.io.IOException
TransGenException
OpenMMS, Copyright 2001, All rights reserved