xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.tronanalysis
Class TronanalysisContext

java.lang.Object
  extended byedu.uci.isr.xarch.tronanalysis.TronanalysisContext
All Implemented Interfaces:
ITronanalysisContext, IXArchContext

public class TronanalysisContext
extends Object
implements ITronanalysisContext

The context object for the tronanalysis package. This object is used to create objects that are used in the tronanalysis namespace.

Author:
Automatically Generated by xArch apigen

Field Summary
protected static String DEFAULT_ELT_NAME
           
protected  Document doc
           
protected  IXArch xArch
           
 
Fields inherited from interface edu.uci.isr.xarch.tronanalysis.ITronanalysisContext
TYPE_METADATA
 
Constructor Summary
TronanalysisContext(IXArch xArch)
          Create a new TronanalysisContext for the given IXArch object.
 
Method Summary
 IDescription createDescription()
          Create an edu.uci.isr.xarch.instance.IDescription object in this namespace.
protected  Element createElement(String name)
           
 ITest createTest()
          Create an ITest object in this namespace.
 ITronAnalysis createTronAnalysis()
          Create an ITronAnalysis object in this namespace.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
          Get the IXArch object that this context is based upon.
 ITronAnalysis promoteToTronAnalysis(IAnalysis value)
          Promote an object of type edu.uci.isr.xarch.analysis.IAnalysis to one of type ITronAnalysis.
 IDescription recontextualizeDescription(IDescription value)
          Brings an edu.uci.isr.xarch.instance.IDescription object created in another context into this context.
 ITest recontextualizeTest(ITest value)
          Brings an ITest object created in another context into this context.
 ITronAnalysis recontextualizeTronAnalysis(ITronAnalysis value)
          Brings an ITronAnalysis object created in another context into this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ELT_NAME

protected static final String DEFAULT_ELT_NAME
See Also:
Constant Field Values

doc

protected Document doc

xArch

protected IXArch xArch
Constructor Detail

TronanalysisContext

public TronanalysisContext(IXArch xArch)
Create a new TronanalysisContext for the given IXArch object.

Parameters:
xArch - XArch object to contextualize in this namespace.
Method Detail

getXArch

public IXArch getXArch()
Description copied from interface: IXArchContext
Get the IXArch object that this context is based upon.

Specified by:
getXArch in interface IXArchContext
Returns:
IXArch object upon which this context is based.

createElement

protected Element createElement(String name)

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchContext
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchContext
Returns:
metadata describing the xsi:type of this element.

createTronAnalysis

public ITronAnalysis createTronAnalysis()
Create an ITronAnalysis object in this namespace.

Specified by:
createTronAnalysis in interface ITronanalysisContext
Returns:
New ITronAnalysis object.

recontextualizeTronAnalysis

public ITronAnalysis recontextualizeTronAnalysis(ITronAnalysis value)
Brings an ITronAnalysis object created in another context into this context.

Specified by:
recontextualizeTronAnalysis in interface ITronanalysisContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

promoteToTronAnalysis

public ITronAnalysis promoteToTronAnalysis(IAnalysis value)
Promote an object of type edu.uci.isr.xarch.analysis.IAnalysis to one of type ITronAnalysis. xArch APIs are structured in such a way that a regular cast is not possible to change interface types, so casting must be done through these promotion functions. If the edu.uci.isr.xarch.analysis.IAnalysis object wraps a DOM element that is the base type, then the xsi:type of the base element is promoted. Otherwise, it is left unchanged. This function also emits an XArchEvent with type PROMOTE_TYPE. The source for this events is the pre-promoted IXArchElement object (should no longer be used), and the target is the post-promotion object. The target name is the name of the interface class that was the target of the promotion.

Specified by:
promoteToTronAnalysis in interface ITronanalysisContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

createDescription

public IDescription createDescription()
Create an edu.uci.isr.xarch.instance.IDescription object in this namespace.

Specified by:
createDescription in interface ITronanalysisContext
Returns:
New edu.uci.isr.xarch.instance.IDescription object.

recontextualizeDescription

public IDescription recontextualizeDescription(IDescription value)
Brings an edu.uci.isr.xarch.instance.IDescription object created in another context into this context.

Specified by:
recontextualizeDescription in interface ITronanalysisContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createTest

public ITest createTest()
Create an ITest object in this namespace.

Specified by:
createTest in interface ITronanalysisContext
Returns:
New ITest object.

recontextualizeTest

public ITest recontextualizeTest(ITest value)
Brings an ITest object created in another context into this context.

Specified by:
recontextualizeTest in interface ITronanalysisContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

xArch/xADL 2.0 Data Binding Library