xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.diff
Class DiffContext

java.lang.Object
  extended byedu.uci.isr.xarch.diff.DiffContext
All Implemented Interfaces:
IDiffContext, IXArchContext

public class DiffContext
extends Object
implements IDiffContext

The context object for the diff package. This object is used to create objects that are used in the diff namespace.

Author:
Automatically Generated by xArch apigen

Field Summary
protected static String DEFAULT_ELT_NAME
           
protected  Document doc
           
protected  IXArch xArch
           
 
Fields inherited from interface edu.uci.isr.xarch.diff.IDiffContext
TYPE_METADATA
 
Constructor Summary
DiffContext(IXArch xArch)
          Create a new DiffContext for the given IXArch object.
 
Method Summary
 IAdd createAdd()
          Create an IAdd object in this namespace.
 IComponent createComponent()
          Create an edu.uci.isr.xarch.types.IComponent object in this namespace.
 IComponentType createComponentType()
          Create an edu.uci.isr.xarch.types.IComponentType object in this namespace.
 IConnector createConnector()
          Create an edu.uci.isr.xarch.types.IConnector object in this namespace.
 IConnectorType createConnectorType()
          Create an edu.uci.isr.xarch.types.IConnectorType object in this namespace.
 IDiff createDiff()
          Create an IDiff object in this namespace.
 IDiff createDiffElement()
          Create a top-level element of type IDiff.
 IDiffPart createDiffPart()
          Create an IDiffPart object in this namespace.
protected  Element createElement(String name)
           
 IGroup createGroup()
          Create an edu.uci.isr.xarch.instance.IGroup object in this namespace.
 IInterfaceType createInterfaceType()
          Create an edu.uci.isr.xarch.types.IInterfaceType object in this namespace.
 ILink createLink()
          Create an edu.uci.isr.xarch.types.ILink object in this namespace.
 IRemove createRemove()
          Create an IRemove object in this namespace.
 Collection getAllDiffs(IXArch xArch)
          Gets all the IDiff children from the given IXArch element.
 IDiff getDiff(IXArch xArch)
          Gets the IDiff 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.
 IAdd recontextualizeAdd(IAdd value)
          Brings an IAdd object created in another context into this context.
 IComponent recontextualizeComponent(IComponent value)
          Brings an edu.uci.isr.xarch.types.IComponent object created in another context into this context.
 IComponentType recontextualizeComponentType(IComponentType value)
          Brings an edu.uci.isr.xarch.types.IComponentType object created in another context into this context.
 IConnector recontextualizeConnector(IConnector value)
          Brings an edu.uci.isr.xarch.types.IConnector object created in another context into this context.
 IConnectorType recontextualizeConnectorType(IConnectorType value)
          Brings an edu.uci.isr.xarch.types.IConnectorType object created in another context into this context.
 IDiff recontextualizeDiff(IDiff value)
          Brings an IDiff object created in another context into this context.
 IDiffPart recontextualizeDiffPart(IDiffPart value)
          Brings an IDiffPart 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.
 IInterfaceType recontextualizeInterfaceType(IInterfaceType value)
          Brings an edu.uci.isr.xarch.types.IInterfaceType object created in another context into this context.
 ILink recontextualizeLink(ILink value)
          Brings an edu.uci.isr.xarch.types.ILink object created in another context into this context.
 IRemove recontextualizeRemove(IRemove value)
          Brings an IRemove 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

DEFAULT_ELT_NAME

protected static final String DEFAULT_ELT_NAME
See Also:
Constant Field Values

doc

protected Document doc

xArch

protected IXArch xArch
Constructor Detail

DiffContext

public DiffContext(IXArch xArch)
Create a new DiffContext for the given IXArch object.

Parameters:
xArch - XArch object to contextualize in this namespace.
Method Detail

getXArch

public IXArch getXArch()
Description copied from interface: IXArchContext
Get the IXArch object that this context is based upon.

Specified by:
getXArch in interface IXArchContext
Returns:
IXArch object upon which this context is based.

createElement

protected Element createElement(String name)

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchContext
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchContext
Returns:
metadata describing the xsi:type of this element.

createAdd

public IAdd createAdd()
Create an IAdd object in this namespace.

Specified by:
createAdd in interface IDiffContext
Returns:
New IAdd object.

recontextualizeAdd

public IAdd recontextualizeAdd(IAdd value)
Brings an IAdd object created in another context into this context.

Specified by:
recontextualizeAdd in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createComponent

public IComponent createComponent()
Create an edu.uci.isr.xarch.types.IComponent object in this namespace.

Specified by:
createComponent in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.IComponent object.

recontextualizeComponent

public IComponent recontextualizeComponent(IComponent value)
Brings an edu.uci.isr.xarch.types.IComponent object created in another context into this context.

Specified by:
recontextualizeComponent in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createConnector

public IConnector createConnector()
Create an edu.uci.isr.xarch.types.IConnector object in this namespace.

Specified by:
createConnector in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.IConnector object.

recontextualizeConnector

public IConnector recontextualizeConnector(IConnector value)
Brings an edu.uci.isr.xarch.types.IConnector object created in another context into this context.

Specified by:
recontextualizeConnector in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createLink

public ILink createLink()
Create an edu.uci.isr.xarch.types.ILink object in this namespace.

Specified by:
createLink in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.ILink object.

recontextualizeLink

public ILink recontextualizeLink(ILink value)
Brings an edu.uci.isr.xarch.types.ILink object created in another context into this context.

Specified by:
recontextualizeLink in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createGroup

public IGroup createGroup()
Create an edu.uci.isr.xarch.instance.IGroup object in this namespace.

Specified by:
createGroup in interface IDiffContext
Returns:
New edu.uci.isr.xarch.instance.IGroup object.

recontextualizeGroup

public IGroup recontextualizeGroup(IGroup value)
Brings an edu.uci.isr.xarch.instance.IGroup object created in another context into this context.

Specified by:
recontextualizeGroup in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createComponentType

public IComponentType createComponentType()
Create an edu.uci.isr.xarch.types.IComponentType object in this namespace.

Specified by:
createComponentType in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.IComponentType object.

recontextualizeComponentType

public IComponentType recontextualizeComponentType(IComponentType value)
Brings an edu.uci.isr.xarch.types.IComponentType object created in another context into this context.

Specified by:
recontextualizeComponentType in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createConnectorType

public IConnectorType createConnectorType()
Create an edu.uci.isr.xarch.types.IConnectorType object in this namespace.

Specified by:
createConnectorType in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.IConnectorType object.

recontextualizeConnectorType

public IConnectorType recontextualizeConnectorType(IConnectorType value)
Brings an edu.uci.isr.xarch.types.IConnectorType object created in another context into this context.

Specified by:
recontextualizeConnectorType in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createInterfaceType

public IInterfaceType createInterfaceType()
Create an edu.uci.isr.xarch.types.IInterfaceType object in this namespace.

Specified by:
createInterfaceType in interface IDiffContext
Returns:
New edu.uci.isr.xarch.types.IInterfaceType object.

recontextualizeInterfaceType

public IInterfaceType recontextualizeInterfaceType(IInterfaceType value)
Brings an edu.uci.isr.xarch.types.IInterfaceType object created in another context into this context.

Specified by:
recontextualizeInterfaceType in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createRemove

public IRemove createRemove()
Create an IRemove object in this namespace.

Specified by:
createRemove in interface IDiffContext
Returns:
New IRemove object.

recontextualizeRemove

public IRemove recontextualizeRemove(IRemove value)
Brings an IRemove object created in another context into this context.

Specified by:
recontextualizeRemove in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createDiffPart

public IDiffPart createDiffPart()
Create an IDiffPart object in this namespace.

Specified by:
createDiffPart in interface IDiffContext
Returns:
New IDiffPart object.

recontextualizeDiffPart

public IDiffPart recontextualizeDiffPart(IDiffPart value)
Brings an IDiffPart object created in another context into this context.

Specified by:
recontextualizeDiffPart in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createDiff

public IDiff createDiff()
Create an IDiff object in this namespace.

Specified by:
createDiff in interface IDiffContext
Returns:
New IDiff object.

recontextualizeDiff

public IDiff recontextualizeDiff(IDiff value)
Brings an IDiff object created in another context into this context.

Specified by:
recontextualizeDiff in interface IDiffContext
Parameters:
value - Object to recontextualize.
Returns:
value object in this namespace.

createDiffElement

public IDiff createDiffElement()
Create a top-level element of type IDiff. This function should be used in lieu of createDiff if the element is to be added as a sub-object of IXArch.

Specified by:
createDiffElement in interface IDiffContext
Returns:
new IDiff suitable for adding as a child of xArch.

getDiff

public IDiff getDiff(IXArch xArch)
Gets the IDiff child from the given IXArch element. If there are multiple matching children, this returns the first one.

Specified by:
getDiff in interface IDiffContext
Parameters:
xArch - IXArch object from which to get the child.
Returns:
IDiff that is the child of xArch or null if no such object exists.

getAllDiffs

public Collection getAllDiffs(IXArch xArch)
Gets all the IDiff children from the given IXArch element.

Specified by:
getAllDiffs in interface IDiffContext
Parameters:
xArch - IXArch object from which to get the children.
Returns:
Collection of IDiff that are the children of xArch or an empty collection if no such object exists.

xArch/xADL 2.0 Data Binding Library