|
||||||||||
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.uml.UMLFormat
public class UMLFormat
The UMLFormat writes out BrahmsObjects in XMI (XML Metadata Interchange) for use by UML tools (Unified Modeling Language).
Field Summary | |
---|---|
protected static java.lang.String |
LOG_PROPERTY
|
Constructor Summary | |
---|---|
UMLFormat()
Constructor, creates a new UMLFormat |
Method Summary | |
---|---|
protected static java.lang.String |
createXMLString(java.lang.String s)
Creates a new String from the specified String converting special characters such as &, <, >, " and ' to XML codes for support by XML parsers. |
static IFormat |
getFormat()
Returns an instance of the OntologyFormat |
IFormatter |
getFormatter(BrahmsObject obj)
Returns the UML formatter for the given object. |
static java.lang.String |
getTypeXMLID(int type)
Returns the XML ID for the specified value or meta type. |
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 |
Field Detail |
---|
protected static final java.lang.String LOG_PROPERTY
Constructor Detail |
---|
public UMLFormat()
Method Detail |
---|
public static IFormat getFormat()
public static java.lang.String getTypeXMLID(int type)
type
- the type for which the XML ID is to be returned
protected static java.lang.String createXMLString(java.lang.String s)
s
- the String to be converted to an XML String
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 |