org.rcsb.openmms.meta
Class CatWriter
java.lang.Object
|
+--org.rcsb.openmms.meta.TransVisitor
|
+--org.rcsb.openmms.meta.CatWriter
- public class CatWriter
- extends TransVisitor
Metamodel visitor that generates the Java code for the
category loaders which process
the parsed string data in an mmCIF file and place
it into a structure specific for that mmCIF category.
This code is perhaps best understood by simultaneously
reviewing an example
category loader it generates. E.g. AtomSiteCatLoader.java
The public methods called by the mmCIF builder ( see the
CifParser.java and Builder.java) code come first in this
file. The various private methods that follow write sections
to Character buffers that are then writen to the Category loader
file when closeCategory() is called.
- Version:
- 1.7
- Author:
- Douglas S. Greer
- See Also:
Builder
,
CifParser
,
AtomSiteCatLoader
Constructor Summary |
CatWriter(CifDictionary d,
java.lang.String ldp,
java.lang.String lsr,
java.lang.String msa,
java.lang.String cname)
|
Methods inherited from class org.rcsb.openmms.meta.TransVisitor |
close, closeException, closeFile, closeGetListMethod, closeInterface, closeMatrix, closeMethod, closeRoot, closeStructure, closeValuetype, closeVector, createConstant, createDirective, createExceptionField, createList, createSequence, createTypeDef, open, openException, openFile, openGetListMethod, openInterface, openMethod, setIndentString, writeBuffer, writeCopyright, writeCopyright, writeStr, writeStr, writeStr, writeStr |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatWriter
public CatWriter(CifDictionary d,
java.lang.String ldp,
java.lang.String lsr,
java.lang.String msa,
java.lang.String cname)
setTrace
public void setTrace(boolean t)
openRoot
public void openRoot(RootTrans rt)
throws java.io.IOException,
TransGenException
- Overrides:
openRoot
in class TransVisitor
java.io.IOException
TransGenException
openModule
public void openModule(ModuleTrans mt)
throws java.io.IOException,
TransGenException
- Overrides:
openModule
in class TransVisitor
java.io.IOException
TransGenException
closeModule
public void closeModule(ModuleTrans mt)
throws java.io.IOException,
TransGenException
- Overrides:
closeModule
in class TransVisitor
java.io.IOException
TransGenException
openCategory
public void openCategory(CategoryTrans ct)
throws java.io.IOException,
TransGenException
- Overrides:
openCategory
in class TransVisitor
java.io.IOException
TransGenException
openStructure
public void openStructure(StructureTrans st)
throws java.io.IOException,
TransGenException
- Overrides:
openStructure
in class TransVisitor
java.io.IOException
TransGenException
openValuetype
public void openValuetype(ValuetypeTrans vt)
throws java.io.IOException,
TransGenException
- Overrides:
openValuetype
in class TransVisitor
java.io.IOException
TransGenException
openField
public void openField(FieldTrans ft)
throws java.io.IOException,
TransGenException
- Overrides:
openField
in class TransVisitor
java.io.IOException
TransGenException
closeField
public void closeField(FieldTrans ft)
throws java.io.IOException,
TransGenException
- Overrides:
closeField
in class TransVisitor
java.io.IOException
TransGenException
openSubfield
public void openSubfield(SubfieldTrans ft)
throws java.io.IOException,
TransGenException
- Overrides:
openSubfield
in class TransVisitor
java.io.IOException
TransGenException
closeSubfield
public void closeSubfield(SubfieldTrans ft)
throws java.io.IOException,
TransGenException
- Overrides:
closeSubfield
in class TransVisitor
java.io.IOException
TransGenException
openVector
public void openVector(VectorTrans vt)
throws java.io.IOException,
TransGenException
- Overrides:
openVector
in class TransVisitor
java.io.IOException
TransGenException
openMatrix
public void openMatrix(MatrixTrans vt)
throws java.io.IOException,
TransGenException
- Overrides:
openMatrix
in class TransVisitor
java.io.IOException
TransGenException
closeCategory
public void closeCategory(CategoryTrans ct)
throws java.io.IOException,
TransGenException
- Overrides:
closeCategory
in class TransVisitor
java.io.IOException
TransGenException
cifTypeConverter
public static java.lang.String cifTypeConverter(java.lang.String ct)
throws TransGenException
TransGenException
OpenMMS, Copyright 2001, All rights reserved