|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.vm.api.convert.ConversionContext
public class ConversionContext
ConversionContext maintains additional information usable during the conversion of objects.
Constructor Summary | |
---|---|
ConversionContext()
Constructor, creates a new ConversionContext. |
Method Summary | |
---|---|
void |
addBrahmsConverted(java.lang.Object jobj,
IObject bobj)
Adds the specified Java object as being or having been converted to the specified Brahms object. |
void |
addCreatedBrahmsObject(IObject obj)
Adds the specified Brahms object as a Brahms object created during the conversion. |
void |
addJavaConverted(IObject bobj,
java.lang.Object jobj)
Adds the specified Brahms object as being or having been converted to the specified Java object. |
void |
clearBrahmsConverted()
Removes all cached Java to Brahms conversions. |
void |
clearCreatedBrahmsObjects()
Clears the list with created Brahms objects. |
void |
clearJavaConverted()
Removes all cached Brahms to Java conversions. |
IContext |
getBrahmsContext()
Returns the Brahms context used for interacting with Brahms concepts. |
IObject |
getBrahmsConverted(java.lang.Object jobj)
Returns the Brahms object that was converted from the specified Java object. |
ConverterManager |
getConverterManager()
Returns the ConverterManager used for the conversions. |
java.util.List<IObject> |
getCreatedBrahmsObjects()
Returns the list of Brahms objects that were created during the conversion. |
IInstanceMapping |
getInstanceMapping()
Returns the IInstanceMapping used to identify whether to update or create an object during conversion. |
java.lang.Object |
getJavaConverted(IObject bobj)
Returns the Java object that was converted from the specified Brahms object. |
void |
setBrahmsContext(IContext ctx)
Sets the Brahms context used for interacting with Brahms concepts. |
void |
setConverterManager(ConverterManager cm)
Sets the ConverterManager used for the conversions. |
void |
setInstanceMapping(IInstanceMapping mapping)
Sets the IInstanceMapping used to identify whether to update or create an object during conversion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversionContext()
Method Detail |
---|
public void setConverterManager(ConverterManager cm)
cm
- the ConverterManagerpublic ConverterManager getConverterManager()
public void setBrahmsContext(IContext ctx)
ctx
- the Brahms IContextpublic IContext getBrahmsContext()
public void setInstanceMapping(IInstanceMapping mapping)
mapping
- the IInstanceMappingpublic IInstanceMapping getInstanceMapping()
public void addBrahmsConverted(java.lang.Object jobj, IObject bobj)
jobj
- the Java object being or having been convertedbobj
- the Brahms objectpublic IObject getBrahmsConverted(java.lang.Object jobj)
jobj
- the Java object for which to return the Brahms object
public void clearBrahmsConverted()
public void addJavaConverted(IObject bobj, java.lang.Object jobj)
bobj
- the Brahms object being or having been convertedjobj
- the Java objectpublic java.lang.Object getJavaConverted(IObject bobj)
bobj
- the Brahms object for which to return the Java object
public void clearJavaConverted()
public void addCreatedBrahmsObject(IObject obj)
obj
- the created Brahms objectpublic java.util.List<IObject> getCreatedBrahmsObjects()
public void clearCreatedBrahmsObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |