xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javasourcecode
Class JavaSourceFileImpl

java.lang.Object
  extended byedu.uci.isr.xarch.javasourcecode.JavaSourceFileImpl
All Implemented Interfaces:
DOMBased, IJavaSourceFile, IXArchElement

public class JavaSourceFileImpl
extends Object
implements IJavaSourceFile, DOMBased

DOM-Based implementation of the IJavaSourceFile interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String FILE_NAME_ATTR_NAME
          Tag name for fileNames in this object.
static String PATH_ATTR_NAME
          Tag name for paths in this object.
static String REPOSITORY_LOCATION_ELT_NAME
          Tag name for repositoryLocations in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.javasourcecode.IJavaSourceFile
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
JavaSourceFileImpl(Element elt)
           
 
Method Summary
 void addRepositoryLocation(IRepositoryLocation newRepositoryLocation)
          Add a repositoryLocation to this JavaSourceFile.
 void addRepositoryLocations(Collection repositoryLocations)
          Add a collection of repositoryLocations to this JavaSourceFile.
 void clearFileName()
          Removes the fileName attribute from this object.
 void clearPath()
          Removes the path attribute from this object.
 void clearRepositoryLocations()
          Remove all repositoryLocations from this JavaSourceFile.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllRepositoryLocations()
          Get all the repositoryLocations from this JavaSourceFile.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 String getFileName()
          Gets the value of the fileName attribute on this object.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 String getPath()
          Gets the value of the path attribute on this object.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllRepositoryLocations(Collection repositoryLocationsToCheck)
          Determine if this JavaSourceFile contains each element in the given set of repositoryLocations.
 boolean hasFileName(String fileName)
          Determines if this object's fileName attribute has the given value.
 int hashCode()
           
 boolean hasPath(String path)
          Determines if this object's path attribute has the given value.
 boolean hasRepositoryLocation(IRepositoryLocation repositoryLocationToCheck)
          Determine if this JavaSourceFile contains a given repositoryLocation.
 Collection hasRepositoryLocations(Collection repositoryLocationsToCheck)
          Determine if this JavaSourceFile contains the given set of repositoryLocations.
 boolean isEquivalent(IJavaSourceFile c)
          Determine if another JavaSourceFile is equivalent to this one, ignoring ID's.
 void removeRepositoryLocation(IRepositoryLocation repositoryLocationToRemove)
          Remove the given repositoryLocation from this JavaSourceFile.
 void removeRepositoryLocations(Collection repositoryLocations)
          Remove all the given repositoryLocations from this JavaSourceFile.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setFileName(String fileName)
          Set the fileName attribute on this object.
 void setPath(String path)
          Set the path attribute on this object.
 void setXArch(IXArch xArch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

xArch

protected IXArch xArch

FILE_NAME_ATTR_NAME

public static final String FILE_NAME_ATTR_NAME
Tag name for fileNames in this object.

See Also:
Constant Field Values

PATH_ATTR_NAME

public static final String PATH_ATTR_NAME
Tag name for paths 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

elt

protected Element elt
Constructor Detail

JavaSourceFileImpl

public JavaSourceFileImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

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

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getTypeMetadata

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

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

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

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

setFileName

public void setFileName(String fileName)
Set the fileName attribute on this object.

Specified by:
setFileName in interface IJavaSourceFile
Parameters:
fileName - attribute value.

clearFileName

public void clearFileName()
Removes the fileName attribute from this object.

Specified by:
clearFileName in interface IJavaSourceFile

getFileName

public String getFileName()
Gets the value of the fileName attribute on this object.

Specified by:
getFileName in interface IJavaSourceFile
Returns:
fileName attribute's value or null if that attribute is not set.

hasFileName

public boolean hasFileName(String fileName)
Determines if this object's fileName attribute has the given value.

Specified by:
hasFileName in interface IJavaSourceFile
Parameters:
fileName - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setPath

public void setPath(String path)
Set the path attribute on this object.

Specified by:
setPath in interface IJavaSourceFile
Parameters:
path - attribute value.

clearPath

public void clearPath()
Removes the path attribute from this object.

Specified by:
clearPath in interface IJavaSourceFile

getPath

public String getPath()
Gets the value of the path attribute on this object.

Specified by:
getPath in interface IJavaSourceFile
Returns:
path attribute's value or null if that attribute is not set.

hasPath

public boolean hasPath(String path)
Determines if this object's path attribute has the given value.

Specified by:
hasPath in interface IJavaSourceFile
Parameters:
path - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

addRepositoryLocation

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

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

addRepositoryLocations

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

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

clearRepositoryLocations

public void clearRepositoryLocations()
Description copied from interface: IJavaSourceFile
Remove all repositoryLocations from this JavaSourceFile.

Specified by:
clearRepositoryLocations in interface IJavaSourceFile

removeRepositoryLocation

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

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

removeRepositoryLocations

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

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

getAllRepositoryLocations

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

Specified by:
getAllRepositoryLocations in interface IJavaSourceFile
Returns:
all repositoryLocations in this JavaSourceFile.

hasRepositoryLocation

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

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

hasRepositoryLocations

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

Specified by:
hasRepositoryLocations in interface IJavaSourceFile
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: IJavaSourceFile
Determine if this JavaSourceFile contains each element in the given set of repositoryLocations.

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

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library