xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javasourcecode
Class JavaSourceCodeImplementationImpl

java.lang.Object
  extended byedu.uci.isr.xarch.implementation.ImplementationImpl
      extended byedu.uci.isr.xarch.javasourcecode.JavaSourceCodeImplementationImpl
All Implemented Interfaces:
DOMBased, IImplementation, IJavaSourceCodeImplementation, IXArchElement

public class JavaSourceCodeImplementationImpl
extends ImplementationImpl
implements IJavaSourceCodeImplementation, IImplementation, DOMBased

DOM-Based implementation of the IJavaSourceCodeImplementation interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String REPOSITORY_LOCATION_ELT_NAME
          Tag name for repositoryLocations in this object.
static String SOURCE_CODE_FILE_ELT_NAME
          Tag name for sourceCodeFiles in this object.
static String SOURCE_CODE_MANAGER_ELT_NAME
          Tag name for sourceCodeManagers 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.javasourcecode.IJavaSourceCodeImplementation
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
JavaSourceCodeImplementationImpl(Element elt)
           
 
Method Summary
 void addRepositoryLocation(IRepositoryLocation newRepositoryLocation)
          Add a repositoryLocation to this JavaSourceCodeImplementation.
 void addRepositoryLocations(Collection repositoryLocations)
          Add a collection of repositoryLocations to this JavaSourceCodeImplementation.
 void addSourceCodeFile(IJavaSourceFile newSourceCodeFile)
          Add a sourceCodeFile to this JavaSourceCodeImplementation.
 void addSourceCodeFiles(Collection sourceCodeFiles)
          Add a collection of sourceCodeFiles to this JavaSourceCodeImplementation.
 void clearRepositoryLocations()
          Remove all repositoryLocations from this JavaSourceCodeImplementation.
 void clearSourceCodeFiles()
          Remove all sourceCodeFiles from this JavaSourceCodeImplementation.
 void clearSourceCodeManager()
          Clear the sourceCodeManager from this JavaSourceCodeImplementation.
 IXArchElement cloneElement(int depth)
           
 Collection getAllRepositoryLocations()
          Get all the repositoryLocations from this JavaSourceCodeImplementation.
 Collection getAllSourceCodeFiles()
          Get all the sourceCodeFiles from this JavaSourceCodeImplementation.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
protected static SequenceOrder getSequenceOrder()
           
 IJavaSourceCodeManager getSourceCodeManager()
          Get the sourceCodeManager from this JavaSourceCodeImplementation.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 boolean hasAllRepositoryLocations(Collection repositoryLocationsToCheck)
          Determine if this JavaSourceCodeImplementation contains each element in the given set of repositoryLocations.
 boolean hasAllSourceCodeFiles(Collection sourceCodeFilesToCheck)
          Determine if this JavaSourceCodeImplementation contains each element in the given set of sourceCodeFiles.
 boolean hasRepositoryLocation(IRepositoryLocation repositoryLocationToCheck)
          Determine if this JavaSourceCodeImplementation contains a given repositoryLocation.
 Collection hasRepositoryLocations(Collection repositoryLocationsToCheck)
          Determine if this JavaSourceCodeImplementation contains the given set of repositoryLocations.
 boolean hasSourceCodeFile(IJavaSourceFile sourceCodeFileToCheck)
          Determine if this JavaSourceCodeImplementation contains a given sourceCodeFile.
 Collection hasSourceCodeFiles(Collection sourceCodeFilesToCheck)
          Determine if this JavaSourceCodeImplementation contains the given set of sourceCodeFiles.
 boolean hasSourceCodeManager(IJavaSourceCodeManager value)
          Determine if this JavaSourceCodeImplementation has the given sourceCodeManager
 boolean isEquivalent(IJavaSourceCodeImplementation c)
          Determine if another JavaSourceCodeImplementation is equivalent to this one, ignoring ID's.
 void removeRepositoryLocation(IRepositoryLocation repositoryLocationToRemove)
          Remove the given repositoryLocation from this JavaSourceCodeImplementation.
 void removeRepositoryLocations(Collection repositoryLocations)
          Remove all the given repositoryLocations from this JavaSourceCodeImplementation.
 void removeSourceCodeFile(IJavaSourceFile sourceCodeFileToRemove)
          Remove the given sourceCodeFile from this JavaSourceCodeImplementation.
 void removeSourceCodeFiles(Collection sourceCodeFiles)
          Remove all the given sourceCodeFiles from this JavaSourceCodeImplementation.
 void setSourceCodeManager(IJavaSourceCodeManager value)
          Set the sourceCodeManager for this JavaSourceCodeImplementation.
 
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

SOURCE_CODE_FILE_ELT_NAME

public static final String SOURCE_CODE_FILE_ELT_NAME
Tag name for sourceCodeFiles in this object.

See Also:
Constant Field Values

REPOSITORY_LOCATION_ELT_NAME

public static final String REPOSITORY_LOCATION_ELT_NAME
Tag name for repositoryLocations in this object.

See Also:
Constant Field Values

SOURCE_CODE_MANAGER_ELT_NAME

public static final String SOURCE_CODE_MANAGER_ELT_NAME
Tag name for sourceCodeManagers in this object.

See Also:
Constant Field Values
Constructor Detail

JavaSourceCodeImplementationImpl

public JavaSourceCodeImplementationImpl(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

addSourceCodeFile

public void addSourceCodeFile(IJavaSourceFile newSourceCodeFile)
Description copied from interface: IJavaSourceCodeImplementation
Add a sourceCodeFile to this JavaSourceCodeImplementation.

Specified by:
addSourceCodeFile in interface IJavaSourceCodeImplementation
Parameters:
newSourceCodeFile - sourceCodeFile to add.

addSourceCodeFiles

public void addSourceCodeFiles(Collection sourceCodeFiles)
Description copied from interface: IJavaSourceCodeImplementation
Add a collection of sourceCodeFiles to this JavaSourceCodeImplementation.

Specified by:
addSourceCodeFiles in interface IJavaSourceCodeImplementation
Parameters:
sourceCodeFiles - sourceCodeFiles to add.

clearSourceCodeFiles

public void clearSourceCodeFiles()
Description copied from interface: IJavaSourceCodeImplementation
Remove all sourceCodeFiles from this JavaSourceCodeImplementation.

Specified by:
clearSourceCodeFiles in interface IJavaSourceCodeImplementation

removeSourceCodeFile

public void removeSourceCodeFile(IJavaSourceFile sourceCodeFileToRemove)
Description copied from interface: IJavaSourceCodeImplementation
Remove the given sourceCodeFile from this JavaSourceCodeImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeSourceCodeFile in interface IJavaSourceCodeImplementation
Parameters:
sourceCodeFileToRemove - sourceCodeFile to remove.

removeSourceCodeFiles

public void removeSourceCodeFiles(Collection sourceCodeFiles)
Description copied from interface: IJavaSourceCodeImplementation
Remove all the given sourceCodeFiles from this JavaSourceCodeImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeSourceCodeFiles in interface IJavaSourceCodeImplementation
Parameters:
sourceCodeFiles - sourceCodeFile to remove.

getAllSourceCodeFiles

public Collection getAllSourceCodeFiles()
Description copied from interface: IJavaSourceCodeImplementation
Get all the sourceCodeFiles from this JavaSourceCodeImplementation.

Specified by:
getAllSourceCodeFiles in interface IJavaSourceCodeImplementation
Returns:
all sourceCodeFiles in this JavaSourceCodeImplementation.

hasSourceCodeFile

public boolean hasSourceCodeFile(IJavaSourceFile sourceCodeFileToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains a given sourceCodeFile.

Specified by:
hasSourceCodeFile in interface IJavaSourceCodeImplementation
Returns:
true if this JavaSourceCodeImplementation contains the given sourceCodeFileToCheck, false otherwise.

hasSourceCodeFiles

public Collection hasSourceCodeFiles(Collection sourceCodeFilesToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains the given set of sourceCodeFiles.

Specified by:
hasSourceCodeFiles in interface IJavaSourceCodeImplementation
Parameters:
sourceCodeFilesToCheck - sourceCodeFiles to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in sourceCodeFiles 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.

hasAllSourceCodeFiles

public boolean hasAllSourceCodeFiles(Collection sourceCodeFilesToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains each element in the given set of sourceCodeFiles.

Specified by:
hasAllSourceCodeFiles in interface IJavaSourceCodeImplementation
Parameters:
sourceCodeFilesToCheck - sourceCodeFiles to check for.
Returns:
true if every element in sourceCodeFiles is found in this JavaSourceCodeImplementation, false otherwise.

addRepositoryLocation

public void addRepositoryLocation(IRepositoryLocation newRepositoryLocation)
Description copied from interface: IJavaSourceCodeImplementation
Add a repositoryLocation to this JavaSourceCodeImplementation.

Specified by:
addRepositoryLocation in interface IJavaSourceCodeImplementation
Parameters:
newRepositoryLocation - repositoryLocation to add.

addRepositoryLocations

public void addRepositoryLocations(Collection repositoryLocations)
Description copied from interface: IJavaSourceCodeImplementation
Add a collection of repositoryLocations to this JavaSourceCodeImplementation.

Specified by:
addRepositoryLocations in interface IJavaSourceCodeImplementation
Parameters:
repositoryLocations - repositoryLocations to add.

clearRepositoryLocations

public void clearRepositoryLocations()
Description copied from interface: IJavaSourceCodeImplementation
Remove all repositoryLocations from this JavaSourceCodeImplementation.

Specified by:
clearRepositoryLocations in interface IJavaSourceCodeImplementation

removeRepositoryLocation

public void removeRepositoryLocation(IRepositoryLocation repositoryLocationToRemove)
Description copied from interface: IJavaSourceCodeImplementation
Remove the given repositoryLocation from this JavaSourceCodeImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeRepositoryLocation in interface IJavaSourceCodeImplementation
Parameters:
repositoryLocationToRemove - repositoryLocation to remove.

removeRepositoryLocations

public void removeRepositoryLocations(Collection repositoryLocations)
Description copied from interface: IJavaSourceCodeImplementation
Remove all the given repositoryLocations from this JavaSourceCodeImplementation. Matching is done by the isEquivalent(...) function.

Specified by:
removeRepositoryLocations in interface IJavaSourceCodeImplementation
Parameters:
repositoryLocations - repositoryLocation to remove.

getAllRepositoryLocations

public Collection getAllRepositoryLocations()
Description copied from interface: IJavaSourceCodeImplementation
Get all the repositoryLocations from this JavaSourceCodeImplementation.

Specified by:
getAllRepositoryLocations in interface IJavaSourceCodeImplementation
Returns:
all repositoryLocations in this JavaSourceCodeImplementation.

hasRepositoryLocation

public boolean hasRepositoryLocation(IRepositoryLocation repositoryLocationToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains a given repositoryLocation.

Specified by:
hasRepositoryLocation in interface IJavaSourceCodeImplementation
Returns:
true if this JavaSourceCodeImplementation contains the given repositoryLocationToCheck, false otherwise.

hasRepositoryLocations

public Collection hasRepositoryLocations(Collection repositoryLocationsToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains the given set of repositoryLocations.

Specified by:
hasRepositoryLocations in interface IJavaSourceCodeImplementation
Parameters:
repositoryLocationsToCheck - repositoryLocations to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in repositoryLocations 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.

hasAllRepositoryLocations

public boolean hasAllRepositoryLocations(Collection repositoryLocationsToCheck)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation contains each element in the given set of repositoryLocations.

Specified by:
hasAllRepositoryLocations in interface IJavaSourceCodeImplementation
Parameters:
repositoryLocationsToCheck - repositoryLocations to check for.
Returns:
true if every element in repositoryLocations is found in this JavaSourceCodeImplementation, false otherwise.

setSourceCodeManager

public void setSourceCodeManager(IJavaSourceCodeManager value)
Description copied from interface: IJavaSourceCodeImplementation
Set the sourceCodeManager for this JavaSourceCodeImplementation.

Specified by:
setSourceCodeManager in interface IJavaSourceCodeImplementation
Parameters:
value - new sourceCodeManager

clearSourceCodeManager

public void clearSourceCodeManager()
Description copied from interface: IJavaSourceCodeImplementation
Clear the sourceCodeManager from this JavaSourceCodeImplementation.

Specified by:
clearSourceCodeManager in interface IJavaSourceCodeImplementation

getSourceCodeManager

public IJavaSourceCodeManager getSourceCodeManager()
Description copied from interface: IJavaSourceCodeImplementation
Get the sourceCodeManager from this JavaSourceCodeImplementation.

Specified by:
getSourceCodeManager in interface IJavaSourceCodeImplementation
Returns:
sourceCodeManager

hasSourceCodeManager

public boolean hasSourceCodeManager(IJavaSourceCodeManager value)
Description copied from interface: IJavaSourceCodeImplementation
Determine if this JavaSourceCodeImplementation has the given sourceCodeManager

Specified by:
hasSourceCodeManager in interface IJavaSourceCodeImplementation
Parameters:
value - sourceCodeManager to compare
Returns:
true if the sourceCodeManagers are equivalent, false otherwise

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library