|
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.variants.VariantsContext
The context object for the variants package. This object is used to create objects that are used in the variants namespace.
| Field Summary | |
protected static String |
DEFAULT_ELT_NAME
|
protected Document |
doc
|
protected IXArch |
xArch
|
| Fields inherited from interface edu.uci.isr.xarch.variants.IVariantsContext |
TYPE_METADATA |
| Constructor Summary | |
VariantsContext(IXArch xArch)
Create a new VariantsContext for the given IXArch object. |
|
| Method Summary | |
protected Element |
createElement(String name)
|
IGuard |
createGuard()
Create an edu.uci.isr.xarch.options.IGuard object in this namespace. |
IVariant |
createVariant()
Create an IVariant object in this namespace. |
IVariantComponentType |
createVariantComponentType()
Create an IVariantComponentType object in this namespace. |
IVariantConnectorType |
createVariantConnectorType()
Create an IVariantConnectorType object in this namespace. |
IXMLLink |
createXMLLink()
Create an edu.uci.isr.xarch.instance.IXMLLink 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. |
IVariantComponentType |
promoteToVariantComponentType(IComponentType value)
Promote an object of type edu.uci.isr.xarch.types.IComponentType
to one of type IVariantComponentType. |
IVariantConnectorType |
promoteToVariantConnectorType(IConnectorType value)
Promote an object of type edu.uci.isr.xarch.types.IConnectorType
to one of type IVariantConnectorType. |
IGuard |
recontextualizeGuard(IGuard value)
Brings an edu.uci.isr.xarch.options.IGuard object created in another context into this context. |
IVariant |
recontextualizeVariant(IVariant value)
Brings an IVariant object created in another context into this context. |
IVariantComponentType |
recontextualizeVariantComponentType(IVariantComponentType value)
Brings an IVariantComponentType object created in another context into this context. |
IVariantConnectorType |
recontextualizeVariantConnectorType(IVariantConnectorType value)
Brings an IVariantConnectorType object created in another context into this context. |
IXMLLink |
recontextualizeXMLLink(IXMLLink value)
Brings an edu.uci.isr.xarch.instance.IXMLLink 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 VariantsContext(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 IVariant createVariant()
createVariant in interface IVariantsContextpublic IVariant recontextualizeVariant(IVariant value)
recontextualizeVariant in interface IVariantsContextvalue - Object to recontextualize.
value object in this namespace.public IGuard createGuard()
createGuard in interface IVariantsContextpublic IGuard recontextualizeGuard(IGuard value)
recontextualizeGuard in interface IVariantsContextvalue - Object to recontextualize.
value object in this namespace.public IXMLLink createXMLLink()
createXMLLink in interface IVariantsContextpublic IXMLLink recontextualizeXMLLink(IXMLLink value)
recontextualizeXMLLink in interface IVariantsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentType createVariantComponentType()
createVariantComponentType in interface IVariantsContextpublic IVariantComponentType recontextualizeVariantComponentType(IVariantComponentType value)
recontextualizeVariantComponentType in interface IVariantsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentType promoteToVariantComponentType(IComponentType value)
edu.uci.isr.xarch.types.IComponentType
to one of type IVariantComponentType. 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.IComponentType
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.
promoteToVariantComponentType in interface IVariantsContextvalue - Object to promote.
public IVariantConnectorType createVariantConnectorType()
createVariantConnectorType in interface IVariantsContextpublic IVariantConnectorType recontextualizeVariantConnectorType(IVariantConnectorType value)
recontextualizeVariantConnectorType in interface IVariantsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantConnectorType promoteToVariantConnectorType(IConnectorType value)
edu.uci.isr.xarch.types.IConnectorType
to one of type IVariantConnectorType. 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.IConnectorType
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.
promoteToVariantConnectorType in interface IVariantsContextvalue - 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 | |||||||||