xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javaimplementation
Class JavaImplementationImpl

java.lang.Object
  extended byedu.uci.isr.xarch.implementation.ImplementationImpl
      extended byedu.uci.isr.xarch.javaimplementation.JavaImplementationImpl
All Implemented Interfaces:
DOMBased, IImplementation, IJavaImplementation, IXArchElement

public class JavaImplementationImpl
extends ImplementationImpl
implements IJavaImplementation, IImplementation, DOMBased

DOM-Based implementation of the IJavaImplementation interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String AUX_CLASS_ELT_NAME
          Tag name for auxClasss in this object.
static String MAIN_CLASS_ELT_NAME
          Tag name for mainClasss in this object.
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from class edu.uci.isr.xarch.implementation.ImplementationImpl
elt, xArch
 
Fields inherited from interface edu.uci.isr.xarch.javaimplementation.IJavaImplementation
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
JavaImplementationImpl(Element elt)
           
 
Method Summary
 void addAuxClass(IJavaClassFile newAuxClass)
          Add a auxClass to this JavaImplementation.
 void addAuxClasss(Collection auxClasss)
          Add a collection of auxClasss to this JavaImplementation.
 void clearAuxClasss()
          Remove all auxClasss from this JavaImplementation.
 void clearMainClass()
          Clear the mainClass from this JavaImplementation.
 IXArchElement cloneElement(int depth)
           
 Collection getAllAuxClasss()
          Get all the auxClasss from this JavaImplementation.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 IJavaClassFile getMainClass()
          Get the mainClass from this JavaImplementation.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 boolean hasAllAuxClasss(Collection auxClasssToCheck)
          Determine if this JavaImplementation contains each element in the given set of auxClasss.
 boolean hasAuxClass(IJavaClassFile auxClassToCheck)
          Determine if this JavaImplementation contains a given auxClass.
 Collection hasAuxClasss(Collection auxClasssToCheck)
          Determine if this JavaImplementation contains the given set of auxClasss.
 boolean hasMainClass(IJavaClassFile value)
          Determine if this JavaImplementation has the given mainClass
 boolean isEquivalent(IJavaImplementation c)
          Determine if another JavaImplementation is equivalent to this one, ignoring ID's.
 void removeAuxClass(IJavaClassFile auxClassToRemove)
          Remove the given auxClass from this JavaImplementation.
 void removeAuxClasss(Collection auxClasss)
          Remove all the given auxClasss from this JavaImplementation.
 void setMainClass(IJavaClassFile value)
          Set the mainClass for this JavaImplementation.
 
Methods inherited from class edu.uci.isr.xarch.implementation.ImplementationImpl
equals, getDOMNode, getXArch, hashCode, isEquivalent, setDOMNode, setXArch
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.uci.isr.xarch.implementation.IImplementation
isEquivalent
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
getXArch, setXArch
 
Methods inherited from interface edu.uci.isr.xarch.DOMBased
getDOMNode, setDOMNode
 

Field Detail

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

MAIN_CLASS_ELT_NAME

public static final String MAIN_CLASS_ELT_NAME
Tag name for mainClasss in this object.

See Also:
Constant Field Values

AUX_CLASS_ELT_NAME

public static final String AUX_CLASS_ELT_NAME
Tag name for auxClasss in this object.

See Also:
Constant Field Values
Constructor Detail

JavaImplementationImpl

public JavaImplementationImpl(Element elt)
Method Detail

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement
Overrides:
cloneElement in class ImplementationImpl

getTypeMetadata

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

Specified by:
getTypeMetadata in interface IXArchElement
Overrides:
getTypeMetadata in class ImplementationImpl

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Overrides:
getInstanceMetadata in class ImplementationImpl

setMainClass

public void setMainClass(IJavaClassFile value)
Description copied from interface: IJavaImplementation
Set the mainClass for this JavaImplementation.

Specified by:
setMainClass in interface IJavaImplementation
Parameters:
value - new mainClass

clearMainClass

public void clearMainClass()
Description copied from interface: IJavaImplementation
Clear the mainClass from this JavaImplementation.

Specified by:
clearMainClass in interface IJavaImplementation

getMainClass

public IJavaClassFile getMainClass()
Description copied from interface: IJavaImplementation
Get the mainClass from this JavaImplementation.

Specified by:
getMainClass in interface IJavaImplementation
Returns:
mainClass

hasMainClass

public boolean hasMainClass(IJavaClassFile value)
Description copied from interface: IJavaImplementation
Determine if this JavaImplementation has the given mainClass

Specified by:
hasMainClass in interface IJavaImplementation
Parameters:
value - mainClass to compare
Returns:
true if the mainClasss are equivalent, false otherwise

addAuxClass

public void addAuxClass(IJavaClassFile newAuxClass)
Description copied from interface: IJavaImplementation
Add a auxClass to this JavaImplementation.

Specified by:
addAuxClass in interface IJavaImplementation
Parameters:
newAuxClass - auxClass to add.

addAuxClasss

public void addAuxClasss(Collection auxClasss)
Description copied from interface: IJavaImplementation
Add a collection of auxClasss to this JavaImplementation.

Specified by:
addAuxClasss in interface IJavaImplementation
Parameters:
auxClasss - auxClasss to add.

clearAuxClasss

public void clearAuxClasss()
Description copied from interface: IJavaImplementation
Remove all auxClasss from this JavaImplementation.

Specified by:
clearAuxClasss in interface IJavaImplementation

removeAuxClass

public void removeAuxClass(IJavaClassFile auxClassToRemove)
Description copied from interface: IJavaImplementation
Remove the given auxClass from this JavaImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeAuxClass in interface IJavaImplementation
Parameters:
auxClassToRemove - auxClass to remove.

removeAuxClasss

public void removeAuxClasss(Collection auxClasss)
Description copied from interface: IJavaImplementation
Remove all the given auxClasss from this JavaImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeAuxClasss in interface IJavaImplementation
Parameters:
auxClasss - auxClass to remove.

getAllAuxClasss

public Collection getAllAuxClasss()
Description copied from interface: IJavaImplementation
Get all the auxClasss from this JavaImplementation.

Specified by:
getAllAuxClasss in interface IJavaImplementation
Returns:
all auxClasss in this JavaImplementation.

hasAuxClass

public boolean hasAuxClass(IJavaClassFile auxClassToCheck)
Description copied from interface: IJavaImplementation
Determine if this JavaImplementation contains a given auxClass.

Specified by:
hasAuxClass in interface IJavaImplementation
Returns:
true if this JavaImplementation contains the given auxClassToCheck, false otherwise.

hasAuxClasss

public Collection hasAuxClasss(Collection auxClasssToCheck)
Description copied from interface: IJavaImplementation
Determine if this JavaImplementation contains the given set of auxClasss.

Specified by:
hasAuxClasss in interface IJavaImplementation
Parameters:
auxClasssToCheck - auxClasss to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in auxClasss was found, then the ith element of the collection will be set to true, otherwise it will be set to false. Matching is done with the isEquivalent(...) method.

hasAllAuxClasss

public boolean hasAllAuxClasss(Collection auxClasssToCheck)
Description copied from interface: IJavaImplementation
Determine if this JavaImplementation contains each element in the given set of auxClasss.

Specified by:
hasAllAuxClasss in interface IJavaImplementation
Parameters:
auxClasssToCheck - auxClasss to check for.
Returns:
true if every element in auxClasss is found in this JavaImplementation, false otherwise.

isEquivalent

public boolean isEquivalent(IJavaImplementation c)
Description copied from interface: IJavaImplementation
Determine if another JavaImplementation is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IJavaImplementation
Parameters:
c - JavaImplementation to compare to this one.
Returns:
true if all the child elements of this JavaImplementation are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library