|
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.types.TypesContext
The context object for the types package. This object is used to create objects that are used in the types namespace.
| Field Summary | |
protected static String |
DEFAULT_ELT_NAME
|
protected Document |
doc
|
protected IXArch |
xArch
|
| Fields inherited from interface edu.uci.isr.xarch.types.ITypesContext |
TYPE_METADATA |
| Constructor Summary | |
TypesContext(IXArch xArch)
Create a new TypesContext for the given IXArch object. |
|
| Method Summary | |
IArchStructure |
createArchStructure()
Create an IArchStructure object in this namespace. |
IArchStructure |
createArchStructureElement()
Create a top-level element of type IArchStructure. |
IArchTypes |
createArchTypes()
Create an IArchTypes object in this namespace. |
IArchTypes |
createArchTypesElement()
Create a top-level element of type IArchTypes. |
IComponent |
createComponent()
Create an IComponent object in this namespace. |
IComponentType |
createComponentType()
Create an IComponentType object in this namespace. |
IConnector |
createConnector()
Create an IConnector object in this namespace. |
IConnectorType |
createConnectorType()
Create an IConnectorType object in this namespace. |
IDescription |
createDescription()
Create an edu.uci.isr.xarch.instance.IDescription object in this namespace. |
IDirection |
createDirection()
Create an edu.uci.isr.xarch.instance.IDirection object in this namespace. |
protected Element |
createElement(String name)
|
IGroup |
createGroup()
Create an edu.uci.isr.xarch.instance.IGroup object in this namespace. |
IInterface |
createInterface()
Create an IInterface object in this namespace. |
IInterfaceType |
createInterfaceType()
Create an IInterfaceType object in this namespace. |
ILink |
createLink()
Create an ILink object in this namespace. |
IPoint |
createPoint()
Create an edu.uci.isr.xarch.instance.IPoint object in this namespace. |
IPrescribedComponentInstance |
createPrescribedComponentInstance()
Create an IPrescribedComponentInstance object in this namespace. |
IPrescribedConnectorInstance |
createPrescribedConnectorInstance()
Create an IPrescribedConnectorInstance object in this namespace. |
IPrescribedInterfaceInstance |
createPrescribedInterfaceInstance()
Create an IPrescribedInterfaceInstance object in this namespace. |
IPrescribedLinkInstance |
createPrescribedLinkInstance()
Create an IPrescribedLinkInstance object in this namespace. |
ISignature |
createSignature()
Create an ISignature object in this namespace. |
ISignatureInterfaceMapping |
createSignatureInterfaceMapping()
Create an ISignatureInterfaceMapping object in this namespace. |
ISubArchitecture |
createSubArchitecture()
Create an ISubArchitecture object in this namespace. |
IXMLLink |
createXMLLink()
Create an edu.uci.isr.xarch.instance.IXMLLink object in this namespace. |
Collection |
getAllArchStructures(IXArch xArch)
Gets all the IArchStructure children from the given IXArch element. |
Collection |
getAllArchTypess(IXArch xArch)
Gets all the IArchTypes children from the given IXArch element. |
IArchStructure |
getArchStructure(IXArch xArch)
Gets the IArchStructure child from the given IXArch
element. |
IArchTypes |
getArchTypes(IXArch xArch)
Gets the IArchTypes 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. |
IPrescribedComponentInstance |
promoteToPrescribedComponentInstance(IComponentInstance value)
Promote an object of type edu.uci.isr.xarch.instance.IComponentInstance
to one of type IPrescribedComponentInstance. |
IPrescribedConnectorInstance |
promoteToPrescribedConnectorInstance(IConnectorInstance value)
Promote an object of type edu.uci.isr.xarch.instance.IConnectorInstance
to one of type IPrescribedConnectorInstance. |
IPrescribedInterfaceInstance |
promoteToPrescribedInterfaceInstance(IInterfaceInstance value)
Promote an object of type edu.uci.isr.xarch.instance.IInterfaceInstance
to one of type IPrescribedInterfaceInstance. |
IPrescribedLinkInstance |
promoteToPrescribedLinkInstance(ILinkInstance value)
Promote an object of type edu.uci.isr.xarch.instance.ILinkInstance
to one of type IPrescribedLinkInstance. |
IArchStructure |
recontextualizeArchStructure(IArchStructure value)
Brings an IArchStructure object created in another context into this context. |
IArchTypes |
recontextualizeArchTypes(IArchTypes value)
Brings an IArchTypes object created in another context into this context. |
IComponent |
recontextualizeComponent(IComponent value)
Brings an IComponent object created in another context into this context. |
IComponentType |
recontextualizeComponentType(IComponentType value)
Brings an IComponentType object created in another context into this context. |
IConnector |
recontextualizeConnector(IConnector value)
Brings an IConnector object created in another context into this context. |
IConnectorType |
recontextualizeConnectorType(IConnectorType value)
Brings an IConnectorType 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. |
IDirection |
recontextualizeDirection(IDirection value)
Brings an edu.uci.isr.xarch.instance.IDirection object created in another context into this context. |
IGroup |
recontextualizeGroup(IGroup value)
Brings an edu.uci.isr.xarch.instance.IGroup object created in another context into this context. |
IInterface |
recontextualizeInterface(IInterface value)
Brings an IInterface object created in another context into this context. |
IInterfaceType |
recontextualizeInterfaceType(IInterfaceType value)
Brings an IInterfaceType object created in another context into this context. |
ILink |
recontextualizeLink(ILink value)
Brings an ILink object created in another context into this context. |
IPoint |
recontextualizePoint(IPoint value)
Brings an edu.uci.isr.xarch.instance.IPoint object created in another context into this context. |
IPrescribedComponentInstance |
recontextualizePrescribedComponentInstance(IPrescribedComponentInstance value)
Brings an IPrescribedComponentInstance object created in another context into this context. |
IPrescribedConnectorInstance |
recontextualizePrescribedConnectorInstance(IPrescribedConnectorInstance value)
Brings an IPrescribedConnectorInstance object created in another context into this context. |
IPrescribedInterfaceInstance |
recontextualizePrescribedInterfaceInstance(IPrescribedInterfaceInstance value)
Brings an IPrescribedInterfaceInstance object created in another context into this context. |
IPrescribedLinkInstance |
recontextualizePrescribedLinkInstance(IPrescribedLinkInstance value)
Brings an IPrescribedLinkInstance object created in another context into this context. |
ISignature |
recontextualizeSignature(ISignature value)
Brings an ISignature object created in another context into this context. |
ISignatureInterfaceMapping |
recontextualizeSignatureInterfaceMapping(ISignatureInterfaceMapping value)
Brings an ISignatureInterfaceMapping object created in another context into this context. |
ISubArchitecture |
recontextualizeSubArchitecture(ISubArchitecture value)
Brings an ISubArchitecture 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 TypesContext(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 IInterface createInterface()
createInterface in interface ITypesContextpublic IInterface recontextualizeInterface(IInterface value)
recontextualizeInterface in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IDescription createDescription()
createDescription in interface ITypesContextpublic IDescription recontextualizeDescription(IDescription value)
recontextualizeDescription in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IDirection createDirection()
createDirection in interface ITypesContextpublic IDirection recontextualizeDirection(IDirection value)
recontextualizeDirection in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IXMLLink createXMLLink()
createXMLLink in interface ITypesContextpublic IXMLLink recontextualizeXMLLink(IXMLLink value)
recontextualizeXMLLink in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IComponent createComponent()
createComponent in interface ITypesContextpublic IComponent recontextualizeComponent(IComponent value)
recontextualizeComponent in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IConnector createConnector()
createConnector in interface ITypesContextpublic IConnector recontextualizeConnector(IConnector value)
recontextualizeConnector in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public ILink createLink()
createLink in interface ITypesContextpublic ILink recontextualizeLink(ILink value)
recontextualizeLink in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPoint createPoint()
createPoint in interface ITypesContextpublic IPoint recontextualizePoint(IPoint value)
recontextualizePoint in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public ISignatureInterfaceMapping createSignatureInterfaceMapping()
createSignatureInterfaceMapping in interface ITypesContextpublic ISignatureInterfaceMapping recontextualizeSignatureInterfaceMapping(ISignatureInterfaceMapping value)
recontextualizeSignatureInterfaceMapping in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public ISubArchitecture createSubArchitecture()
createSubArchitecture in interface ITypesContextpublic ISubArchitecture recontextualizeSubArchitecture(ISubArchitecture value)
recontextualizeSubArchitecture in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IArchStructure createArchStructure()
createArchStructure in interface ITypesContextpublic IArchStructure recontextualizeArchStructure(IArchStructure value)
recontextualizeArchStructure in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IGroup createGroup()
createGroup in interface ITypesContextpublic IGroup recontextualizeGroup(IGroup value)
recontextualizeGroup in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public ISignature createSignature()
createSignature in interface ITypesContextpublic ISignature recontextualizeSignature(ISignature value)
recontextualizeSignature in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IComponentType createComponentType()
createComponentType in interface ITypesContextpublic IComponentType recontextualizeComponentType(IComponentType value)
recontextualizeComponentType in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IConnectorType createConnectorType()
createConnectorType in interface ITypesContextpublic IConnectorType recontextualizeConnectorType(IConnectorType value)
recontextualizeConnectorType in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IInterfaceType createInterfaceType()
createInterfaceType in interface ITypesContextpublic IInterfaceType recontextualizeInterfaceType(IInterfaceType value)
recontextualizeInterfaceType in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IArchTypes createArchTypes()
createArchTypes in interface ITypesContextpublic IArchTypes recontextualizeArchTypes(IArchTypes value)
recontextualizeArchTypes in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPrescribedComponentInstance createPrescribedComponentInstance()
createPrescribedComponentInstance in interface ITypesContextpublic IPrescribedComponentInstance recontextualizePrescribedComponentInstance(IPrescribedComponentInstance value)
recontextualizePrescribedComponentInstance in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPrescribedComponentInstance promoteToPrescribedComponentInstance(IComponentInstance value)
edu.uci.isr.xarch.instance.IComponentInstance
to one of type IPrescribedComponentInstance. 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.instance.IComponentInstance
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.
promoteToPrescribedComponentInstance in interface ITypesContextvalue - Object to promote.
public IPrescribedConnectorInstance createPrescribedConnectorInstance()
createPrescribedConnectorInstance in interface ITypesContextpublic IPrescribedConnectorInstance recontextualizePrescribedConnectorInstance(IPrescribedConnectorInstance value)
recontextualizePrescribedConnectorInstance in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPrescribedConnectorInstance promoteToPrescribedConnectorInstance(IConnectorInstance value)
edu.uci.isr.xarch.instance.IConnectorInstance
to one of type IPrescribedConnectorInstance. 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.instance.IConnectorInstance
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.
promoteToPrescribedConnectorInstance in interface ITypesContextvalue - Object to promote.
public IPrescribedInterfaceInstance createPrescribedInterfaceInstance()
createPrescribedInterfaceInstance in interface ITypesContextpublic IPrescribedInterfaceInstance recontextualizePrescribedInterfaceInstance(IPrescribedInterfaceInstance value)
recontextualizePrescribedInterfaceInstance in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPrescribedInterfaceInstance promoteToPrescribedInterfaceInstance(IInterfaceInstance value)
edu.uci.isr.xarch.instance.IInterfaceInstance
to one of type IPrescribedInterfaceInstance. 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.instance.IInterfaceInstance
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.
promoteToPrescribedInterfaceInstance in interface ITypesContextvalue - Object to promote.
public IPrescribedLinkInstance createPrescribedLinkInstance()
createPrescribedLinkInstance in interface ITypesContextpublic IPrescribedLinkInstance recontextualizePrescribedLinkInstance(IPrescribedLinkInstance value)
recontextualizePrescribedLinkInstance in interface ITypesContextvalue - Object to recontextualize.
value object in this namespace.public IPrescribedLinkInstance promoteToPrescribedLinkInstance(ILinkInstance value)
edu.uci.isr.xarch.instance.ILinkInstance
to one of type IPrescribedLinkInstance. 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.instance.ILinkInstance
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.
promoteToPrescribedLinkInstance in interface ITypesContextvalue - Object to promote.
public IArchStructure createArchStructureElement()
IArchStructure.
This function should be used in lieu of createArchStructure
if the element is to be added as a sub-object of IXArch.
createArchStructureElement in interface ITypesContextpublic IArchStructure getArchStructure(IXArch xArch)
IXArch
element. If there are multiple matching children, this returns the first one.
getArchStructure in interface ITypesContextxArch - IXArch object from which to get the child.
IArchStructure that is the child
of xArch or null if no such object exists.public Collection getAllArchStructures(IXArch xArch)
IXArch element.
getAllArchStructures in interface ITypesContextxArch - IXArch object from which to get the children.
IArchStructure that are
the children of xArch or an empty collection if no such object exists.public IArchTypes createArchTypesElement()
IArchTypes.
This function should be used in lieu of createArchTypes
if the element is to be added as a sub-object of IXArch.
createArchTypesElement in interface ITypesContextpublic IArchTypes getArchTypes(IXArch xArch)
IXArch
element. If there are multiple matching children, this returns the first one.
getArchTypes in interface ITypesContextxArch - IXArch object from which to get the child.
IArchTypes that is the child
of xArch or null if no such object exists.public Collection getAllArchTypess(IXArch xArch)
IXArch element.
getAllArchTypess in interface ITypesContextxArch - IXArch object from which to get the children.
IArchTypes 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 | |||||||||