OpenMMS
V1.5.1 Std

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
           
 
Constructor Summary
TransVisitor()
           
 
Method Summary
 void close()
           
 void closeCategory(CategoryTrans ct)
           
 void closeException(ExceptionTrans st)
           
 void closeField(FieldTrans ft)
           
 void closeFile(FileTrans ft)
           
 void closeGetListMethod(GetListMethodTrans glmt)
           
 void closeInterface(InterfaceTrans it)
           
 void closeMatrix(MatrixTrans ft)
           
 void closeMethod(MethodTrans mt)
           
 void closeModule(ModuleTrans mt)
           
 void closeRoot(RootTrans rt)
           
 void closeStructure(StructureTrans st)
           
 void closeSubfield(SubfieldTrans ft)
           
 void closeValuetype(ValuetypeTrans st)
           
 void closeVector(VectorTrans ft)
           
 void createConstant(ConstantTrans dt)
           
 void createDirective(DirectiveTrans dt)
           
 void createExceptionField(ExceptionFieldTrans ft)
           
 void createList(ListTrans lt)
           
 void createSequence(SequenceTrans lt)
           
 void createTypeDef(TypeDefTrans lt)
           
 void open(java.lang.String fname)
           
 void openCategory(CategoryTrans ct)
           
 void openException(ExceptionTrans st)
           
 void openField(FieldTrans ft)
           
 void openFile(FileTrans ft)
           
 void openGetListMethod(GetListMethodTrans glmt)
           
 void openInterface(InterfaceTrans it)
           
 void openMatrix(MatrixTrans ft)
           
 void openMethod(MethodTrans mt)
           
 void openModule(ModuleTrans mt)
           
 void openRoot(RootTrans rt)
           
 void openStructure(StructureTrans st)
           
 void openSubfield(SubfieldTrans ft)
           
 void openValuetype(ValuetypeTrans st)
           
 void openVector(VectorTrans ft)
           
 void setIndentString(java.lang.String s)
           
 void writeBuffer(StringStruct a)
           
 void writeCopyright()
           
 void writeCopyright(StringStruct ss)
           
 void writeStr(java.lang.String s)
           
 void writeStr(java.lang.String[] sl)
           
 void writeStr(StringStruct oss, java.lang.String[] sl, int ilev)
           
 void writeStr(StringStruct oss, java.lang.String s, int ilev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indent

protected java.lang.String indent
Constructor Detail

TransVisitor

public TransVisitor()
Method Detail

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
V1.5.1 Std

OpenMMS, Copyright 2001, All rights reserved