|
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.versions.VersionsContext
The context object for the versions package. This object is used to create objects that are used in the versions namespace.
| Field Summary | |
protected static String |
DEFAULT_ELT_NAME
|
protected Document |
doc
|
protected IXArch |
xArch
|
| Fields inherited from interface edu.uci.isr.xarch.versions.IVersionsContext |
TYPE_METADATA |
| Constructor Summary | |
VersionsContext(IXArch xArch)
Create a new VersionsContext for the given IXArch object. |
|
| Method Summary | |
IArchVersions |
createArchVersions()
Create an IArchVersions object in this namespace. |
IArchVersions |
createArchVersionsElement()
Create a top-level element of type IArchVersions. |
IComponentTypeVersionGraph |
createComponentTypeVersionGraph()
Create an IComponentTypeVersionGraph object in this namespace. |
IConnectorTypeVersionGraph |
createConnectorTypeVersionGraph()
Create an IConnectorTypeVersionGraph object in this namespace. |
IDescription |
createDescription()
Create an edu.uci.isr.xarch.instance.IDescription object in this namespace. |
protected Element |
createElement(String name)
|
IInterfaceTypeImplVers |
createInterfaceTypeImplVers()
Create an IInterfaceTypeImplVers object in this namespace. |
IInterfaceTypeVersionGraph |
createInterfaceTypeVersionGraph()
Create an IInterfaceTypeVersionGraph object in this namespace. |
INode |
createNode()
Create an INode object in this namespace. |
IVariantComponentTypeImplVers |
createVariantComponentTypeImplVers()
Create an IVariantComponentTypeImplVers object in this namespace. |
IVariantConnectorTypeImplVers |
createVariantConnectorTypeImplVers()
Create an IVariantConnectorTypeImplVers object in this namespace. |
IVersionID |
createVersionID()
Create an IVersionID object in this namespace. |
IXMLLink |
createXMLLink()
Create an edu.uci.isr.xarch.instance.IXMLLink object in this namespace. |
Collection |
getAllArchVersionss(IXArch xArch)
Gets all the IArchVersions children from the given IXArch element. |
IArchVersions |
getArchVersions(IXArch xArch)
Gets the IArchVersions child from the given IXArch
element. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
Get the IXArch object that
this context is based upon. |
IInterfaceTypeImplVers |
promoteToInterfaceTypeImplVers(IInterfaceTypeImpl value)
Promote an object of type edu.uci.isr.xarch.implementation.IInterfaceTypeImpl
to one of type IInterfaceTypeImplVers. |
IVariantComponentTypeImplVers |
promoteToVariantComponentTypeImplVers(IVariantComponentTypeImpl value)
Promote an object of type edu.uci.isr.xarch.implementation.IVariantComponentTypeImpl
to one of type IVariantComponentTypeImplVers. |
IVariantConnectorTypeImplVers |
promoteToVariantConnectorTypeImplVers(IVariantConnectorTypeImpl value)
Promote an object of type edu.uci.isr.xarch.implementation.IVariantConnectorTypeImpl
to one of type IVariantConnectorTypeImplVers. |
IArchVersions |
recontextualizeArchVersions(IArchVersions value)
Brings an IArchVersions object created in another context into this context. |
IComponentTypeVersionGraph |
recontextualizeComponentTypeVersionGraph(IComponentTypeVersionGraph value)
Brings an IComponentTypeVersionGraph object created in another context into this context. |
IConnectorTypeVersionGraph |
recontextualizeConnectorTypeVersionGraph(IConnectorTypeVersionGraph value)
Brings an IConnectorTypeVersionGraph object created in another context into this context. |
IDescription |
recontextualizeDescription(IDescription value)
Brings an edu.uci.isr.xarch.instance.IDescription object created in another context into this context. |
IInterfaceTypeImplVers |
recontextualizeInterfaceTypeImplVers(IInterfaceTypeImplVers value)
Brings an IInterfaceTypeImplVers object created in another context into this context. |
IInterfaceTypeVersionGraph |
recontextualizeInterfaceTypeVersionGraph(IInterfaceTypeVersionGraph value)
Brings an IInterfaceTypeVersionGraph object created in another context into this context. |
INode |
recontextualizeNode(INode value)
Brings an INode object created in another context into this context. |
IVariantComponentTypeImplVers |
recontextualizeVariantComponentTypeImplVers(IVariantComponentTypeImplVers value)
Brings an IVariantComponentTypeImplVers object created in another context into this context. |
IVariantConnectorTypeImplVers |
recontextualizeVariantConnectorTypeImplVers(IVariantConnectorTypeImplVers value)
Brings an IVariantConnectorTypeImplVers object created in another context into this context. |
IVersionID |
recontextualizeVersionID(IVersionID value)
Brings an IVersionID 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 VersionsContext(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 IVersionID createVersionID()
createVersionID in interface IVersionsContextpublic IVersionID recontextualizeVersionID(IVersionID value)
recontextualizeVersionID in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public INode createNode()
createNode in interface IVersionsContextpublic INode recontextualizeNode(INode value)
recontextualizeNode in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IXMLLink createXMLLink()
createXMLLink in interface IVersionsContextpublic IXMLLink recontextualizeXMLLink(IXMLLink value)
recontextualizeXMLLink in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IComponentTypeVersionGraph createComponentTypeVersionGraph()
createComponentTypeVersionGraph in interface IVersionsContextpublic IComponentTypeVersionGraph recontextualizeComponentTypeVersionGraph(IComponentTypeVersionGraph value)
recontextualizeComponentTypeVersionGraph in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IDescription createDescription()
createDescription in interface IVersionsContextpublic IDescription recontextualizeDescription(IDescription value)
recontextualizeDescription in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IConnectorTypeVersionGraph createConnectorTypeVersionGraph()
createConnectorTypeVersionGraph in interface IVersionsContextpublic IConnectorTypeVersionGraph recontextualizeConnectorTypeVersionGraph(IConnectorTypeVersionGraph value)
recontextualizeConnectorTypeVersionGraph in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IInterfaceTypeVersionGraph createInterfaceTypeVersionGraph()
createInterfaceTypeVersionGraph in interface IVersionsContextpublic IInterfaceTypeVersionGraph recontextualizeInterfaceTypeVersionGraph(IInterfaceTypeVersionGraph value)
recontextualizeInterfaceTypeVersionGraph in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IArchVersions createArchVersions()
createArchVersions in interface IVersionsContextpublic IArchVersions recontextualizeArchVersions(IArchVersions value)
recontextualizeArchVersions in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImplVers createVariantComponentTypeImplVers()
createVariantComponentTypeImplVers in interface IVersionsContextpublic IVariantComponentTypeImplVers recontextualizeVariantComponentTypeImplVers(IVariantComponentTypeImplVers value)
recontextualizeVariantComponentTypeImplVers in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImplVers promoteToVariantComponentTypeImplVers(IVariantComponentTypeImpl value)
edu.uci.isr.xarch.implementation.IVariantComponentTypeImpl
to one of type IVariantComponentTypeImplVers. 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.implementation.IVariantComponentTypeImpl
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.
promoteToVariantComponentTypeImplVers in interface IVersionsContextvalue - Object to promote.
public IVariantConnectorTypeImplVers createVariantConnectorTypeImplVers()
createVariantConnectorTypeImplVers in interface IVersionsContextpublic IVariantConnectorTypeImplVers recontextualizeVariantConnectorTypeImplVers(IVariantConnectorTypeImplVers value)
recontextualizeVariantConnectorTypeImplVers in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IVariantConnectorTypeImplVers promoteToVariantConnectorTypeImplVers(IVariantConnectorTypeImpl value)
edu.uci.isr.xarch.implementation.IVariantConnectorTypeImpl
to one of type IVariantConnectorTypeImplVers. 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.implementation.IVariantConnectorTypeImpl
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.
promoteToVariantConnectorTypeImplVers in interface IVersionsContextvalue - Object to promote.
public IInterfaceTypeImplVers createInterfaceTypeImplVers()
createInterfaceTypeImplVers in interface IVersionsContextpublic IInterfaceTypeImplVers recontextualizeInterfaceTypeImplVers(IInterfaceTypeImplVers value)
recontextualizeInterfaceTypeImplVers in interface IVersionsContextvalue - Object to recontextualize.
value object in this namespace.public IInterfaceTypeImplVers promoteToInterfaceTypeImplVers(IInterfaceTypeImpl value)
edu.uci.isr.xarch.implementation.IInterfaceTypeImpl
to one of type IInterfaceTypeImplVers. 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.implementation.IInterfaceTypeImpl
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.
promoteToInterfaceTypeImplVers in interface IVersionsContextvalue - Object to promote.
public IArchVersions createArchVersionsElement()
IArchVersions.
This function should be used in lieu of createArchVersions
if the element is to be added as a sub-object of IXArch.
createArchVersionsElement in interface IVersionsContextpublic IArchVersions getArchVersions(IXArch xArch)
IXArch
element. If there are multiple matching children, this returns the first one.
getArchVersions in interface IVersionsContextxArch - IXArch object from which to get the child.
IArchVersions that is the child
of xArch or null if no such object exists.public Collection getAllArchVersionss(IXArch xArch)
IXArch element.
getAllArchVersionss in interface IVersionsContextxArch - IXArch object from which to get the children.
IArchVersions that are
the children of xArch or an empty collection if no such object exists.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||