xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.implementation
Class ImplementationContext

java.lang.Object
  extended byedu.uci.isr.xarch.implementation.ImplementationContext
All Implemented Interfaces:
IImplementationContext, IXArchContext

public class ImplementationContext
extends Object
implements IImplementationContext

The context object for the implementation package. This object is used to create objects that are used in the implementation 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.implementation.IImplementationContext
TYPE_METADATA
 
Constructor Summary
ImplementationContext(IXArch xArch)
          Create a new ImplementationContext for the given IXArch object.
 
Method Summary
protected  Element createElement(String name)
           
 IImplementation createImplementation()
          Create an IImplementation object in this namespace.
 IInterfaceTypeImpl createInterfaceTypeImpl()
          Create an IInterfaceTypeImpl object in this namespace.
 IVariantComponentTypeImpl createVariantComponentTypeImpl()
          Create an IVariantComponentTypeImpl object in this namespace.
 IVariantConnectorTypeImpl createVariantConnectorTypeImpl()
          Create an IVariantConnectorTypeImpl 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.
 IInterfaceTypeImpl promoteToInterfaceTypeImpl(IInterfaceType value)
          Promote an object of type edu.uci.isr.xarch.types.IInterfaceType to one of type IInterfaceTypeImpl.
 IVariantComponentTypeImpl promoteToVariantComponentTypeImpl(IVariantComponentType value)
          Promote an object of type edu.uci.isr.xarch.variants.IVariantComponentType to one of type IVariantComponentTypeImpl.
 IVariantConnectorTypeImpl promoteToVariantConnectorTypeImpl(IVariantConnectorType value)
          Promote an object of type edu.uci.isr.xarch.variants.IVariantConnectorType to one of type IVariantConnectorTypeImpl.
 IImplementation recontextualizeImplementation(IImplementation value)
          Brings an IImplementation object created in another context into this context.
 IInterfaceTypeImpl recontextualizeInterfaceTypeImpl(IInterfaceTypeImpl value)
          Brings an IInterfaceTypeImpl object created in another context into this context.
 IVariantComponentTypeImpl recontextualizeVariantComponentTypeImpl(IVariantComponentTypeImpl value)
          Brings an IVariantComponentTypeImpl object created in another context into this context.
 IVariantConnectorTypeImpl recontextualizeVariantConnectorTypeImpl(IVariantConnectorTypeImpl value)
          Brings an IVariantConnectorTypeImpl 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

ImplementationContext

public ImplementationContext(IXArch xArch)
Create a new ImplementationContext 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.

createImplementation

public IImplementation createImplementation()
Create an IImplementation object in this namespace.

Specified by:
createImplementation in interface IImplementationContext
Returns:
New IImplementation object.

recontextualizeImplementation

public IImplementation recontextualizeImplementation(IImplementation value)
Brings an IImplementation object created in another context into this context.

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

createVariantComponentTypeImpl

public IVariantComponentTypeImpl createVariantComponentTypeImpl()
Create an IVariantComponentTypeImpl object in this namespace.

Specified by:
createVariantComponentTypeImpl in interface IImplementationContext
Returns:
New IVariantComponentTypeImpl object.

recontextualizeVariantComponentTypeImpl

public IVariantComponentTypeImpl recontextualizeVariantComponentTypeImpl(IVariantComponentTypeImpl value)
Brings an IVariantComponentTypeImpl object created in another context into this context.

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

promoteToVariantComponentTypeImpl

public IVariantComponentTypeImpl promoteToVariantComponentTypeImpl(IVariantComponentType value)
Promote an object of type edu.uci.isr.xarch.variants.IVariantComponentType to one of type IVariantComponentTypeImpl. 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.variants.IVariantComponentType 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:
promoteToVariantComponentTypeImpl in interface IImplementationContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

createVariantConnectorTypeImpl

public IVariantConnectorTypeImpl createVariantConnectorTypeImpl()
Create an IVariantConnectorTypeImpl object in this namespace.

Specified by:
createVariantConnectorTypeImpl in interface IImplementationContext
Returns:
New IVariantConnectorTypeImpl object.

recontextualizeVariantConnectorTypeImpl

public IVariantConnectorTypeImpl recontextualizeVariantConnectorTypeImpl(IVariantConnectorTypeImpl value)
Brings an IVariantConnectorTypeImpl object created in another context into this context.

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

promoteToVariantConnectorTypeImpl

public IVariantConnectorTypeImpl promoteToVariantConnectorTypeImpl(IVariantConnectorType value)
Promote an object of type edu.uci.isr.xarch.variants.IVariantConnectorType to one of type IVariantConnectorTypeImpl. 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.variants.IVariantConnectorType 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:
promoteToVariantConnectorTypeImpl in interface IImplementationContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

createInterfaceTypeImpl

public IInterfaceTypeImpl createInterfaceTypeImpl()
Create an IInterfaceTypeImpl object in this namespace.

Specified by:
createInterfaceTypeImpl in interface IImplementationContext
Returns:
New IInterfaceTypeImpl object.

recontextualizeInterfaceTypeImpl

public IInterfaceTypeImpl recontextualizeInterfaceTypeImpl(IInterfaceTypeImpl value)
Brings an IInterfaceTypeImpl object created in another context into this context.

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

promoteToInterfaceTypeImpl

public IInterfaceTypeImpl promoteToInterfaceTypeImpl(IInterfaceType value)
Promote an object of type edu.uci.isr.xarch.types.IInterfaceType to one of type IInterfaceTypeImpl. 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.types.IInterfaceType 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:
promoteToInterfaceTypeImpl in interface IImplementationContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

xArch/xADL 2.0 Data Binding Library