|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.javasourcecode.JavaSourceFileImpl
DOM-Based implementation of the IJavaSourceFile interface.
| 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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String FILE_NAME_ATTR_NAME
public static final String PATH_ATTR_NAME
public static final String REPOSITORY_LOCATION_ELT_NAME
protected Element elt
| Constructor Detail |
public JavaSourceFileImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setFileName(String fileName)
setFileName in interface IJavaSourceFilefileName - attribute value.public void clearFileName()
clearFileName in interface IJavaSourceFilepublic String getFileName()
getFileName in interface IJavaSourceFilenull if that
attribute is not set.public boolean hasFileName(String fileName)
hasFileName in interface IJavaSourceFilefileName - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setPath(String path)
setPath in interface IJavaSourceFilepath - attribute value.public void clearPath()
clearPath in interface IJavaSourceFilepublic String getPath()
getPath in interface IJavaSourceFilenull if that
attribute is not set.public boolean hasPath(String path)
hasPath in interface IJavaSourceFilepath - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void addRepositoryLocation(IRepositoryLocation newRepositoryLocation)
IJavaSourceFile
addRepositoryLocation in interface IJavaSourceFilenewRepositoryLocation - repositoryLocation to add.public void addRepositoryLocations(Collection repositoryLocations)
IJavaSourceFile
addRepositoryLocations in interface IJavaSourceFilerepositoryLocations - repositoryLocations to add.public void clearRepositoryLocations()
IJavaSourceFile
clearRepositoryLocations in interface IJavaSourceFilepublic void removeRepositoryLocation(IRepositoryLocation repositoryLocationToRemove)
IJavaSourceFileisEquivalent(...) function.
removeRepositoryLocation in interface IJavaSourceFilerepositoryLocationToRemove - repositoryLocation to remove.public void removeRepositoryLocations(Collection repositoryLocations)
IJavaSourceFileisEquivalent(...) function.
removeRepositoryLocations in interface IJavaSourceFilerepositoryLocations - repositoryLocation to remove.public Collection getAllRepositoryLocations()
IJavaSourceFile
getAllRepositoryLocations in interface IJavaSourceFilepublic boolean hasRepositoryLocation(IRepositoryLocation repositoryLocationToCheck)
IJavaSourceFile
hasRepositoryLocation in interface IJavaSourceFiletrue if this JavaSourceFile contains the given
repositoryLocationToCheck, false otherwise.public Collection hasRepositoryLocations(Collection repositoryLocationsToCheck)
IJavaSourceFile
hasRepositoryLocations in interface IJavaSourceFilerepositoryLocationsToCheck - repositoryLocations to check for.
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.public boolean hasAllRepositoryLocations(Collection repositoryLocationsToCheck)
IJavaSourceFile
hasAllRepositoryLocations in interface IJavaSourceFilerepositoryLocationsToCheck - repositoryLocations to check for.
true if every element in
repositoryLocations is found in this JavaSourceFile,
false otherwise.public boolean isEquivalent(IJavaSourceFile c)
IJavaSourceFile
isEquivalent in interface IJavaSourceFilec - JavaSourceFile to compare to this one.
true if all the child elements of this
JavaSourceFile are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||