xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javasourcecode
Class JavasourcecodeContext

java.lang.Object
  extended byedu.uci.isr.xarch.javasourcecode.JavasourcecodeContext
All Implemented Interfaces:
IJavasourcecodeContext, IXArchContext

public class JavasourcecodeContext
extends Object
implements IJavasourcecodeContext

The context object for the javasourcecode package. This object is used to create objects that are used in the javasourcecode 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.javasourcecode.IJavasourcecodeContext
TYPE_METADATA
 
Constructor Summary
JavasourcecodeContext(IXArch xArch)
          Create a new JavasourcecodeContext for the given IXArch object.
 
Method Summary
protected  Element createElement(String name)
           
 IJavaSourceCodeImplementation createJavaSourceCodeImplementation()
          Create an IJavaSourceCodeImplementation object in this namespace.
 IJavaSourceCodeManager createJavaSourceCodeManager()
          Create an IJavaSourceCodeManager object in this namespace.
 IJavaSourceFile createJavaSourceFile()
          Create an IJavaSourceFile object in this namespace.
 IRepositoryLocation createRepositoryLocation()
          Create an IRepositoryLocation object in this namespace.
 IXMLLink createXMLLink()
          Create an edu.uci.isr.xarch.instance.IXMLLink object in this namespace.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
          Get the IXArch object that this context is based upon.
 IJavaSourceCodeImplementation promoteToJavaSourceCodeImplementation(IImplementation value)
          Promote an object of type edu.uci.isr.xarch.implementation.IImplementation to one of type IJavaSourceCodeImplementation.
 IJavaSourceCodeImplementation recontextualizeJavaSourceCodeImplementation(IJavaSourceCodeImplementation value)
          Brings an IJavaSourceCodeImplementation object created in another context into this context.
 IJavaSourceCodeManager recontextualizeJavaSourceCodeManager(IJavaSourceCodeManager value)
          Brings an IJavaSourceCodeManager object created in another context into this context.
 IJavaSourceFile recontextualizeJavaSourceFile(IJavaSourceFile value)
          Brings an IJavaSourceFile object created in another context into this context.
 IRepositoryLocation recontextualizeRepositoryLocation(IRepositoryLocation value)
          Brings an IRepositoryLocation 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

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

JavasourcecodeContext

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

createJavaSourceCodeManager

public IJavaSourceCodeManager createJavaSourceCodeManager()
Create an IJavaSourceCodeManager object in this namespace.

Specified by:
createJavaSourceCodeManager in interface IJavasourcecodeContext
Returns:
New IJavaSourceCodeManager object.

recontextualizeJavaSourceCodeManager

public IJavaSourceCodeManager recontextualizeJavaSourceCodeManager(IJavaSourceCodeManager value)
Brings an IJavaSourceCodeManager object created in another context into this context.

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

createRepositoryLocation

public IRepositoryLocation createRepositoryLocation()
Create an IRepositoryLocation object in this namespace.

Specified by:
createRepositoryLocation in interface IJavasourcecodeContext
Returns:
New IRepositoryLocation object.

recontextualizeRepositoryLocation

public IRepositoryLocation recontextualizeRepositoryLocation(IRepositoryLocation value)
Brings an IRepositoryLocation object created in another context into this context.

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

createXMLLink

public IXMLLink createXMLLink()
Create an edu.uci.isr.xarch.instance.IXMLLink object in this namespace.

Specified by:
createXMLLink in interface IJavasourcecodeContext
Returns:
New edu.uci.isr.xarch.instance.IXMLLink object.

recontextualizeXMLLink

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

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

createJavaSourceFile

public IJavaSourceFile createJavaSourceFile()
Create an IJavaSourceFile object in this namespace.

Specified by:
createJavaSourceFile in interface IJavasourcecodeContext
Returns:
New IJavaSourceFile object.

recontextualizeJavaSourceFile

public IJavaSourceFile recontextualizeJavaSourceFile(IJavaSourceFile value)
Brings an IJavaSourceFile object created in another context into this context.

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

createJavaSourceCodeImplementation

public IJavaSourceCodeImplementation createJavaSourceCodeImplementation()
Create an IJavaSourceCodeImplementation object in this namespace.

Specified by:
createJavaSourceCodeImplementation in interface IJavasourcecodeContext
Returns:
New IJavaSourceCodeImplementation object.

recontextualizeJavaSourceCodeImplementation

public IJavaSourceCodeImplementation recontextualizeJavaSourceCodeImplementation(IJavaSourceCodeImplementation value)
Brings an IJavaSourceCodeImplementation object created in another context into this context.

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

promoteToJavaSourceCodeImplementation

public IJavaSourceCodeImplementation promoteToJavaSourceCodeImplementation(IImplementation value)
Promote an object of type edu.uci.isr.xarch.implementation.IImplementation to one of type IJavaSourceCodeImplementation. 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.IImplementation 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:
promoteToJavaSourceCodeImplementation in interface IJavasourcecodeContext
Parameters:
value - Object to promote.
Returns:
Promoted object.

xArch/xADL 2.0 Data Binding Library