|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.implementation.ImplementationContext
The context object for the implementation package. This object is used to create objects that are used in the implementation namespace.
| 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 |
protected static final String DEFAULT_ELT_NAME
protected Document doc
protected IXArch xArch
| Constructor Detail |
public ImplementationContext(IXArch xArch)
xArch - XArch object to contextualize in this namespace.| Method Detail |
public IXArch getXArch()
IXArchContextIXArch object that
this context is based upon.
getXArch in interface IXArchContextIXArch object upon which
this context is based.protected Element createElement(String name)
public XArchTypeMetadata getTypeMetadata()
IXArchContextxsi:type of this element.
getTypeMetadata in interface IXArchContextxsi:type of this element.public IImplementation createImplementation()
createImplementation in interface IImplementationContextpublic IImplementation recontextualizeImplementation(IImplementation value)
recontextualizeImplementation in interface IImplementationContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImpl createVariantComponentTypeImpl()
createVariantComponentTypeImpl in interface IImplementationContextpublic IVariantComponentTypeImpl recontextualizeVariantComponentTypeImpl(IVariantComponentTypeImpl value)
recontextualizeVariantComponentTypeImpl in interface IImplementationContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImpl promoteToVariantComponentTypeImpl(IVariantComponentType value)
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.
promoteToVariantComponentTypeImpl in interface IImplementationContextvalue - Object to promote.
public IVariantConnectorTypeImpl createVariantConnectorTypeImpl()
createVariantConnectorTypeImpl in interface IImplementationContextpublic IVariantConnectorTypeImpl recontextualizeVariantConnectorTypeImpl(IVariantConnectorTypeImpl value)
recontextualizeVariantConnectorTypeImpl in interface IImplementationContextvalue - Object to recontextualize.
value object in this namespace.public IVariantConnectorTypeImpl promoteToVariantConnectorTypeImpl(IVariantConnectorType value)
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.
promoteToVariantConnectorTypeImpl in interface IImplementationContextvalue - Object to promote.
public IInterfaceTypeImpl createInterfaceTypeImpl()
createInterfaceTypeImpl in interface IImplementationContextpublic IInterfaceTypeImpl recontextualizeInterfaceTypeImpl(IInterfaceTypeImpl value)
recontextualizeInterfaceTypeImpl in interface IImplementationContextvalue - Object to recontextualize.
value object in this namespace.public IInterfaceTypeImpl promoteToInterfaceTypeImpl(IInterfaceType value)
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.
promoteToInterfaceTypeImpl in interface IImplementationContextvalue - Object to promote.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||