xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.sourcecodeeclipse
Class SourcecodeeclipseContext

java.lang.Object
  extended byedu.uci.isr.xarch.sourcecodeeclipse.SourcecodeeclipseContext
All Implemented Interfaces:
ISourcecodeeclipseContext, IXArchContext

public class SourcecodeeclipseContext
extends Object
implements ISourcecodeeclipseContext

The context object for the sourcecodeeclipse package. This object is used to create objects that are used in the sourcecodeeclipse 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.sourcecodeeclipse.ISourcecodeeclipseContext
TYPE_METADATA
 
Constructor Summary
SourcecodeeclipseContext(IXArch xArch)
          Create a new SourcecodeeclipseContext for the given IXArch object.
 
Method Summary
 IEclipseProjectId createEclipseProjectId()
          Create an IEclipseProjectId object in this namespace.
 IEclipseProjectName createEclipseProjectName()
          Create an IEclipseProjectName object in this namespace.
 IEclipseSourceCodeManager createEclipseSourceCodeManager()
          Create an IEclipseSourceCodeManager object in this namespace.
protected  Element createElement(String name)
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
          Get the IXArch object that this context is based upon.
 IEclipseSourceCodeManager promoteToEclipseSourceCodeManager(IJavaSourceCodeManager value)
          Promote an object of type edu.uci.isr.xarch.javasourcecode.IJavaSourceCodeManager to one of type IEclipseSourceCodeManager.
 IEclipseProjectId recontextualizeEclipseProjectId(IEclipseProjectId value)
          Brings an IEclipseProjectId object created in another context into this context.
 IEclipseProjectName recontextualizeEclipseProjectName(IEclipseProjectName value)
          Brings an IEclipseProjectName object created in another context into this context.
 IEclipseSourceCodeManager recontextualizeEclipseSourceCodeManager(IEclipseSourceCodeManager value)
          Brings an IEclipseSourceCodeManager 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

SourcecodeeclipseContext

public SourcecodeeclipseContext(IXArch xArch)
Create a new SourcecodeeclipseContext 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.

createEclipseProjectName

public IEclipseProjectName createEclipseProjectName()
Create an IEclipseProjectName object in this namespace.

Specified by:
createEclipseProjectName in interface ISourcecodeeclipseContext
Returns:
New IEclipseProjectName object.

recontextualizeEclipseProjectName

public IEclipseProjectName recontextualizeEclipseProjectName(IEclipseProjectName value)
Brings an IEclipseProjectName object created in another context into this context.

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

createEclipseProjectId

public IEclipseProjectId createEclipseProjectId()
Create an IEclipseProjectId object in this namespace.

Specified by:
createEclipseProjectId in interface ISourcecodeeclipseContext
Returns:
New IEclipseProjectId object.

recontextualizeEclipseProjectId

public IEclipseProjectId recontextualizeEclipseProjectId(IEclipseProjectId value)
Brings an IEclipseProjectId object created in another context into this context.

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

createEclipseSourceCodeManager

public IEclipseSourceCodeManager createEclipseSourceCodeManager()
Create an IEclipseSourceCodeManager object in this namespace.

Specified by:
createEclipseSourceCodeManager in interface ISourcecodeeclipseContext
Returns:
New IEclipseSourceCodeManager object.

recontextualizeEclipseSourceCodeManager

public IEclipseSourceCodeManager recontextualizeEclipseSourceCodeManager(IEclipseSourceCodeManager value)
Brings an IEclipseSourceCodeManager object created in another context into this context.

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

promoteToEclipseSourceCodeManager

public IEclipseSourceCodeManager promoteToEclipseSourceCodeManager(IJavaSourceCodeManager value)
Promote an object of type edu.uci.isr.xarch.javasourcecode.IJavaSourceCodeManager to one of type IEclipseSourceCodeManager. 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.javasourcecode.IJavaSourceCodeManager 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.

Specified by:
promoteToEclipseSourceCodeManager in interface ISourcecodeeclipseContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

xArch/xADL 2.0 Data Binding Library