|
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.implementation.ImplementationImpl
edu.uci.isr.xarch.javasourcecode.JavaSourceCodeImplementationImpl
DOM-Based implementation of the IJavaSourceCodeImplementation interface.
| 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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
public static final String SOURCE_CODE_FILE_ELT_NAME
public static final String REPOSITORY_LOCATION_ELT_NAME
public static final String SOURCE_CODE_MANAGER_ELT_NAME
| Constructor Detail |
public JavaSourceCodeImplementationImpl(Element elt)
| Method Detail |
protected static SequenceOrder getSequenceOrder()
public IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementcloneElement in class ImplementationImplpublic XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementgetTypeMetadata in class ImplementationImplpublic XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementgetInstanceMetadata in class ImplementationImplpublic void addSourceCodeFile(IJavaSourceFile newSourceCodeFile)
IJavaSourceCodeImplementation
addSourceCodeFile in interface IJavaSourceCodeImplementationnewSourceCodeFile - sourceCodeFile to add.public void addSourceCodeFiles(Collection sourceCodeFiles)
IJavaSourceCodeImplementation
addSourceCodeFiles in interface IJavaSourceCodeImplementationsourceCodeFiles - sourceCodeFiles to add.public void clearSourceCodeFiles()
IJavaSourceCodeImplementation
clearSourceCodeFiles in interface IJavaSourceCodeImplementationpublic void removeSourceCodeFile(IJavaSourceFile sourceCodeFileToRemove)
IJavaSourceCodeImplementationisEquivalent(...) function.
removeSourceCodeFile in interface IJavaSourceCodeImplementationsourceCodeFileToRemove - sourceCodeFile to remove.public void removeSourceCodeFiles(Collection sourceCodeFiles)
IJavaSourceCodeImplementationisEquivalent(...) function.
removeSourceCodeFiles in interface IJavaSourceCodeImplementationsourceCodeFiles - sourceCodeFile to remove.public Collection getAllSourceCodeFiles()
IJavaSourceCodeImplementation
getAllSourceCodeFiles in interface IJavaSourceCodeImplementationpublic boolean hasSourceCodeFile(IJavaSourceFile sourceCodeFileToCheck)
IJavaSourceCodeImplementation
hasSourceCodeFile in interface IJavaSourceCodeImplementationtrue if this JavaSourceCodeImplementation contains the given
sourceCodeFileToCheck, false otherwise.public Collection hasSourceCodeFiles(Collection sourceCodeFilesToCheck)
IJavaSourceCodeImplementation
hasSourceCodeFiles in interface IJavaSourceCodeImplementationsourceCodeFilesToCheck - sourceCodeFiles to check for.
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.public boolean hasAllSourceCodeFiles(Collection sourceCodeFilesToCheck)
IJavaSourceCodeImplementation
hasAllSourceCodeFiles in interface IJavaSourceCodeImplementationsourceCodeFilesToCheck - sourceCodeFiles to check for.
true if every element in
sourceCodeFiles is found in this JavaSourceCodeImplementation,
false otherwise.public void addRepositoryLocation(IRepositoryLocation newRepositoryLocation)
IJavaSourceCodeImplementation
addRepositoryLocation in interface IJavaSourceCodeImplementationnewRepositoryLocation - repositoryLocation to add.public void addRepositoryLocations(Collection repositoryLocations)
IJavaSourceCodeImplementation
addRepositoryLocations in interface IJavaSourceCodeImplementationrepositoryLocations - repositoryLocations to add.public void clearRepositoryLocations()
IJavaSourceCodeImplementation
clearRepositoryLocations in interface IJavaSourceCodeImplementationpublic void removeRepositoryLocation(IRepositoryLocation repositoryLocationToRemove)
IJavaSourceCodeImplementationisEquivalent(...) function.
removeRepositoryLocation in interface IJavaSourceCodeImplementationrepositoryLocationToRemove - repositoryLocation to remove.public void removeRepositoryLocations(Collection repositoryLocations)
IJavaSourceCodeImplementationisEquivalent(...) function.
removeRepositoryLocations in interface IJavaSourceCodeImplementationrepositoryLocations - repositoryLocation to remove.public Collection getAllRepositoryLocations()
IJavaSourceCodeImplementation
getAllRepositoryLocations in interface IJavaSourceCodeImplementationpublic boolean hasRepositoryLocation(IRepositoryLocation repositoryLocationToCheck)
IJavaSourceCodeImplementation
hasRepositoryLocation in interface IJavaSourceCodeImplementationtrue if this JavaSourceCodeImplementation contains the given
repositoryLocationToCheck, false otherwise.public Collection hasRepositoryLocations(Collection repositoryLocationsToCheck)
IJavaSourceCodeImplementation
hasRepositoryLocations in interface IJavaSourceCodeImplementationrepositoryLocationsToCheck - 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)
IJavaSourceCodeImplementation
hasAllRepositoryLocations in interface IJavaSourceCodeImplementationrepositoryLocationsToCheck - repositoryLocations to check for.
true if every element in
repositoryLocations is found in this JavaSourceCodeImplementation,
false otherwise.public void setSourceCodeManager(IJavaSourceCodeManager value)
IJavaSourceCodeImplementation
setSourceCodeManager in interface IJavaSourceCodeImplementationvalue - new sourceCodeManagerpublic void clearSourceCodeManager()
IJavaSourceCodeImplementation
clearSourceCodeManager in interface IJavaSourceCodeImplementationpublic IJavaSourceCodeManager getSourceCodeManager()
IJavaSourceCodeImplementation
getSourceCodeManager in interface IJavaSourceCodeImplementationpublic boolean hasSourceCodeManager(IJavaSourceCodeManager value)
IJavaSourceCodeImplementation
hasSourceCodeManager in interface IJavaSourceCodeImplementationvalue - sourceCodeManager to compare
true if the sourceCodeManagers are equivalent,
false otherwisepublic boolean isEquivalent(IJavaSourceCodeImplementation c)
IJavaSourceCodeImplementation
isEquivalent in interface IJavaSourceCodeImplementationc - JavaSourceCodeImplementation to compare to this one.
true if all the child elements of this
JavaSourceCodeImplementation 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 | |||||||||