|
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.messages.MessagesContext
The context object for the messages package. This object is used to create objects that are used in the messages namespace.
| Field Summary | |
protected static String |
DEFAULT_ELT_NAME
|
protected Document |
doc
|
protected IXArch |
xArch
|
| Fields inherited from interface edu.uci.isr.xarch.messages.IMessagesContext |
TYPE_METADATA |
| Constructor Summary | |
MessagesContext(IXArch xArch)
Create a new MessagesContext for the given IXArch object. |
|
| Method Summary | |
ICauseTime |
createCauseTime()
Create an ICauseTime object in this namespace. |
ICount |
createCount()
Create an ICount object in this namespace. |
IDescription |
createDescription()
Create an edu.uci.isr.xarch.instance.IDescription object in this namespace. |
protected Element |
createElement(String name)
|
IGenericMessage |
createGenericMessage()
Create an IGenericMessage object in this namespace. |
IKind |
createKind()
Create an IKind object in this namespace. |
IMessageCausalitySpecification |
createMessageCausalitySpecification()
Create an IMessageCausalitySpecification object in this namespace. |
IMessageName |
createMessageName()
Create an IMessageName object in this namespace. |
IMessageType |
createMessageType()
Create an IMessageType object in this namespace. |
INamedProperty |
createNamedProperty()
Create an INamedProperty object in this namespace. |
INamedPropertyMessage |
createNamedPropertyMessage()
Create an INamedPropertyMessage object in this namespace. |
IProductionRule |
createProductionRule()
Create an IProductionRule object in this namespace. |
IPropertyName |
createPropertyName()
Create an IPropertyName object in this namespace. |
IPropertyValue |
createPropertyValue()
Create an IPropertyValue object in this namespace. |
IRuleSpecification |
createRuleSpecification()
Create an IRuleSpecification object in this namespace. |
IRuleSpecification |
createRuleSpecificationElement()
Create a top-level element of type IRuleSpecification. |
IVariantComponentTypeImplVersSpec |
createVariantComponentTypeImplVersSpec()
Create an IVariantComponentTypeImplVersSpec object in this namespace. |
IVariantConnectorTypeImplVersSpec |
createVariantConnectorTypeImplVersSpec()
Create an IVariantConnectorTypeImplVersSpec object in this namespace. |
IXMLLink |
createXMLLink()
Create an edu.uci.isr.xarch.instance.IXMLLink object in this namespace. |
Collection |
getAllRuleSpecifications(IXArch xArch)
Gets all the IRuleSpecification children from the given IXArch element. |
IRuleSpecification |
getRuleSpecification(IXArch xArch)
Gets the IRuleSpecification 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. |
INamedPropertyMessage |
promoteToNamedPropertyMessage(IGenericMessage value)
Promote an object of type IGenericMessage
to one of type INamedPropertyMessage. |
IVariantComponentTypeImplVersSpec |
promoteToVariantComponentTypeImplVersSpec(IVariantComponentTypeImplVers value)
Promote an object of type edu.uci.isr.xarch.versions.IVariantComponentTypeImplVers
to one of type IVariantComponentTypeImplVersSpec. |
IVariantConnectorTypeImplVersSpec |
promoteToVariantConnectorTypeImplVersSpec(IVariantConnectorTypeImplVers value)
Promote an object of type edu.uci.isr.xarch.versions.IVariantConnectorTypeImplVers
to one of type IVariantConnectorTypeImplVersSpec. |
ICauseTime |
recontextualizeCauseTime(ICauseTime value)
Brings an ICauseTime object created in another context into this context. |
ICount |
recontextualizeCount(ICount value)
Brings an ICount 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. |
IGenericMessage |
recontextualizeGenericMessage(IGenericMessage value)
Brings an IGenericMessage object created in another context into this context. |
IKind |
recontextualizeKind(IKind value)
Brings an IKind object created in another context into this context. |
IMessageCausalitySpecification |
recontextualizeMessageCausalitySpecification(IMessageCausalitySpecification value)
Brings an IMessageCausalitySpecification object created in another context into this context. |
IMessageName |
recontextualizeMessageName(IMessageName value)
Brings an IMessageName object created in another context into this context. |
IMessageType |
recontextualizeMessageType(IMessageType value)
Brings an IMessageType object created in another context into this context. |
INamedProperty |
recontextualizeNamedProperty(INamedProperty value)
Brings an INamedProperty object created in another context into this context. |
INamedPropertyMessage |
recontextualizeNamedPropertyMessage(INamedPropertyMessage value)
Brings an INamedPropertyMessage object created in another context into this context. |
IProductionRule |
recontextualizeProductionRule(IProductionRule value)
Brings an IProductionRule object created in another context into this context. |
IPropertyName |
recontextualizePropertyName(IPropertyName value)
Brings an IPropertyName object created in another context into this context. |
IPropertyValue |
recontextualizePropertyValue(IPropertyValue value)
Brings an IPropertyValue object created in another context into this context. |
IRuleSpecification |
recontextualizeRuleSpecification(IRuleSpecification value)
Brings an IRuleSpecification object created in another context into this context. |
IVariantComponentTypeImplVersSpec |
recontextualizeVariantComponentTypeImplVersSpec(IVariantComponentTypeImplVersSpec value)
Brings an IVariantComponentTypeImplVersSpec object created in another context into this context. |
IVariantConnectorTypeImplVersSpec |
recontextualizeVariantConnectorTypeImplVersSpec(IVariantConnectorTypeImplVersSpec value)
Brings an IVariantConnectorTypeImplVersSpec 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 MessagesContext(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 IKind createKind()
createKind in interface IMessagesContextpublic IKind recontextualizeKind(IKind value)
recontextualizeKind in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IRuleSpecification createRuleSpecification()
createRuleSpecification in interface IMessagesContextpublic IRuleSpecification recontextualizeRuleSpecification(IRuleSpecification value)
recontextualizeRuleSpecification in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IDescription createDescription()
createDescription in interface IMessagesContextpublic IDescription recontextualizeDescription(IDescription value)
recontextualizeDescription in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IProductionRule createProductionRule()
createProductionRule in interface IMessagesContextpublic IProductionRule recontextualizeProductionRule(IProductionRule value)
recontextualizeProductionRule in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImplVersSpec createVariantComponentTypeImplVersSpec()
createVariantComponentTypeImplVersSpec in interface IMessagesContextpublic IVariantComponentTypeImplVersSpec recontextualizeVariantComponentTypeImplVersSpec(IVariantComponentTypeImplVersSpec value)
recontextualizeVariantComponentTypeImplVersSpec in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IVariantComponentTypeImplVersSpec promoteToVariantComponentTypeImplVersSpec(IVariantComponentTypeImplVers value)
edu.uci.isr.xarch.versions.IVariantComponentTypeImplVers
to one of type IVariantComponentTypeImplVersSpec. 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.versions.IVariantComponentTypeImplVers
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.
promoteToVariantComponentTypeImplVersSpec in interface IMessagesContextvalue - Object to promote.
public IVariantConnectorTypeImplVersSpec createVariantConnectorTypeImplVersSpec()
createVariantConnectorTypeImplVersSpec in interface IMessagesContextpublic IVariantConnectorTypeImplVersSpec recontextualizeVariantConnectorTypeImplVersSpec(IVariantConnectorTypeImplVersSpec value)
recontextualizeVariantConnectorTypeImplVersSpec in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IVariantConnectorTypeImplVersSpec promoteToVariantConnectorTypeImplVersSpec(IVariantConnectorTypeImplVers value)
edu.uci.isr.xarch.versions.IVariantConnectorTypeImplVers
to one of type IVariantConnectorTypeImplVersSpec. 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.versions.IVariantConnectorTypeImplVers
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.
promoteToVariantConnectorTypeImplVersSpec in interface IMessagesContextvalue - Object to promote.
public IMessageCausalitySpecification createMessageCausalitySpecification()
createMessageCausalitySpecification in interface IMessagesContextpublic IMessageCausalitySpecification recontextualizeMessageCausalitySpecification(IMessageCausalitySpecification value)
recontextualizeMessageCausalitySpecification in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IXMLLink createXMLLink()
createXMLLink in interface IMessagesContextpublic IXMLLink recontextualizeXMLLink(IXMLLink value)
recontextualizeXMLLink in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IGenericMessage createGenericMessage()
createGenericMessage in interface IMessagesContextpublic IGenericMessage recontextualizeGenericMessage(IGenericMessage value)
recontextualizeGenericMessage in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public INamedPropertyMessage createNamedPropertyMessage()
createNamedPropertyMessage in interface IMessagesContextpublic INamedPropertyMessage recontextualizeNamedPropertyMessage(INamedPropertyMessage value)
recontextualizeNamedPropertyMessage in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public INamedPropertyMessage promoteToNamedPropertyMessage(IGenericMessage value)
IGenericMessage
to one of type INamedPropertyMessage. 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 IGenericMessage
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.
promoteToNamedPropertyMessage in interface IMessagesContextvalue - Object to promote.
public ICount createCount()
createCount in interface IMessagesContextpublic ICount recontextualizeCount(ICount value)
recontextualizeCount in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IMessageName createMessageName()
createMessageName in interface IMessagesContextpublic IMessageName recontextualizeMessageName(IMessageName value)
recontextualizeMessageName in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IMessageType createMessageType()
createMessageType in interface IMessagesContextpublic IMessageType recontextualizeMessageType(IMessageType value)
recontextualizeMessageType in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public ICauseTime createCauseTime()
createCauseTime in interface IMessagesContextpublic ICauseTime recontextualizeCauseTime(ICauseTime value)
recontextualizeCauseTime in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public INamedProperty createNamedProperty()
createNamedProperty in interface IMessagesContextpublic INamedProperty recontextualizeNamedProperty(INamedProperty value)
recontextualizeNamedProperty in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IPropertyName createPropertyName()
createPropertyName in interface IMessagesContextpublic IPropertyName recontextualizePropertyName(IPropertyName value)
recontextualizePropertyName in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IPropertyValue createPropertyValue()
createPropertyValue in interface IMessagesContextpublic IPropertyValue recontextualizePropertyValue(IPropertyValue value)
recontextualizePropertyValue in interface IMessagesContextvalue - Object to recontextualize.
value object in this namespace.public IRuleSpecification createRuleSpecificationElement()
IRuleSpecification.
This function should be used in lieu of createRuleSpecification
if the element is to be added as a sub-object of IXArch.
createRuleSpecificationElement in interface IMessagesContextpublic IRuleSpecification getRuleSpecification(IXArch xArch)
IXArch
element. If there are multiple matching children, this returns the first one.
getRuleSpecification in interface IMessagesContextxArch - IXArch object from which to get the child.
IRuleSpecification that is the child
of xArch or null if no such object exists.public Collection getAllRuleSpecifications(IXArch xArch)
IXArch element.
getAllRuleSpecifications in interface IMessagesContextxArch - IXArch object from which to get the children.
IRuleSpecification 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 | |||||||||