|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.format.sourcecode.SourceCodeFormat
public class SourceCodeFormat
The SourceCodeFormat writes out BrahmsObjects as Brahms source code
Constructor Summary | |
---|---|
SourceCodeFormat()
Creates a new SourceCodeFormat |
Method Summary | |
---|---|
static IFormat |
getFormat()
Returns an instance of the SourceCodeFormat |
IFormatter |
getFormatter(BrahmsObject obj)
Returns the source code formatter for the given object. |
void |
init()
Initialize the format linking the objects to the appropriate formatter |
void |
writeFormat(BrahmsObject obj,
java.util.Properties p,
java.io.DataOutputStream out)
Writes the given object out in the format defined for that object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceCodeFormat()
Method Detail |
---|
public static IFormat getFormat()
public void init()
public IFormatter getFormatter(BrahmsObject obj)
getFormatter
in interface IFormat
obj
- the BrahmsObject to be formatted
public void writeFormat(BrahmsObject obj, java.util.Properties p, java.io.DataOutputStream out)
writeFormat
in interface IFormat
obj
- the BrahmsObject to be written out in this formatp
- the Properties relevant for the formatting of the outputout
- the DataOutputStream to write the format output to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |