xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javaimplementation
Interface IJavaImplementation

All Superinterfaces:
IImplementation, IXArchElement
All Known Implementing Classes:
JavaImplementationImpl

public interface IJavaImplementation
extends IImplementation, IXArchElement

Interface for accessing objects of the JavaImplementation xsi:type in the javaimplementation namespace. Extends and inherits the properties of the Implementation xsi:type.

Author:
xArch apigen

Field Summary
static XArchTypeMetadata TYPE_METADATA
           
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
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.
 Collection getAllAuxClasss()
          Get all the auxClasss from this JavaImplementation.
 IJavaClassFile getMainClass()
          Get the mainClass from this JavaImplementation.
 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 mainClassToCheck)
          Determine if this JavaImplementation has the given mainClass
 boolean isEquivalent(IJavaImplementation JavaImplementationToCheck)
          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 interface edu.uci.isr.xarch.implementation.IImplementation
isEquivalent
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch
 

Field Detail

TYPE_METADATA

public static final XArchTypeMetadata TYPE_METADATA
Method Detail

setMainClass

public void setMainClass(IJavaClassFile value)
Set the mainClass for this JavaImplementation.

Parameters:
value - new mainClass

clearMainClass

public void clearMainClass()
Clear the mainClass from this JavaImplementation.


getMainClass

public IJavaClassFile getMainClass()
Get the mainClass from this JavaImplementation.

Returns:
mainClass

hasMainClass

public boolean hasMainClass(IJavaClassFile mainClassToCheck)
Determine if this JavaImplementation has the given mainClass

Parameters:
mainClassToCheck - mainClass to compare
Returns:
true if the mainClasss are equivalent, false otherwise

addAuxClass

public void addAuxClass(IJavaClassFile newAuxClass)
Add a auxClass to this JavaImplementation.

Parameters:
newAuxClass - auxClass to add.

addAuxClasss

public void addAuxClasss(Collection auxClasss)
Add a collection of auxClasss to this JavaImplementation.

Parameters:
auxClasss - auxClasss to add.

clearAuxClasss

public void clearAuxClasss()
Remove all auxClasss from this JavaImplementation.


removeAuxClass

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

Parameters:
auxClassToRemove - auxClass to remove.

removeAuxClasss

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

Parameters:
auxClasss - auxClass to remove.

getAllAuxClasss

public Collection getAllAuxClasss()
Get all the auxClasss from this JavaImplementation.

Returns:
all auxClasss in this JavaImplementation.

hasAuxClass

public boolean hasAuxClass(IJavaClassFile auxClassToCheck)
Determine if this JavaImplementation contains a given auxClass.

Returns:
true if this JavaImplementation contains the given auxClassToCheck, false otherwise.

hasAuxClasss

public Collection hasAuxClasss(Collection auxClasssToCheck)
Determine if this JavaImplementation contains the given set of auxClasss.

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)
Determine if this JavaImplementation contains each element in the given set of auxClasss.

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 JavaImplementationToCheck)
Determine if another JavaImplementation is equivalent to this one, ignoring ID's.

Parameters:
JavaImplementationToCheck - 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