|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pfsw.tools.cda.darc.client.RemoteControlService
public class RemoteControlService
This is the API to remotely control a Class Dependency Analyzer.
| Constructor Summary | |
|---|---|
RemoteControlService(DARCConnection conn)
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
IParameterMap |
analyzeDependencies()
Analyzes the dependencies on the currently selected element (if possible). |
IParameterMap |
analyzeDependencies(java.lang.String displayLevel,
java.lang.String dependencyLevel,
java.lang.String sortOrder,
java.lang.String sortFiled)
Analyzes the dependencies on the currently selected element (if possible). |
void |
close()
Close the underlying connection. |
IParameterMap |
closeWorkset(java.lang.String worksetName)
Close the workset with the given name. |
IParameterMap |
exportToFile(java.lang.String filename,
java.lang.String filetype)
Calls a command to export the current element to the given filename utilizing an exporter identified by the fileType. |
IParameterMap |
getElementInfo()
Queries the remote CDA for all information attributes about the currently selected model object. |
ModelElementIdentifier |
getSelectedElement()
Queries the remote CDA for the currently selected model object. |
IParameterMap |
loadWorksetFromFile(java.lang.String filename)
Select the workset with the given name. |
IParameterMap |
selectElement(ModelElementIdentifier identifier)
Select the model element specified by the given identifier. |
IParameterMap |
selectWorkset(java.lang.String worksetName)
Select the workset with the given name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteControlService(DARCConnection conn)
| Method Detail |
|---|
public IParameterMap loadWorksetFromFile(java.lang.String filename)
filename - The relative or absolute filename or a CDA workset file (".ws").
java.lang.IllegalArgumentException - if the given filename is null or blank.public IParameterMap closeWorkset(java.lang.String worksetName)
worksetName - The case-sensitive name of the workset to close.
java.lang.IllegalArgumentException - if the given workset name is null or blank.
public IParameterMap exportToFile(java.lang.String filename,
java.lang.String filetype)
filename - The name of the file to which to export the data.filetype - The type of the output file. Identifies the exporter to use.
java.lang.IllegalArgumentException - if any of the parameters is null or blank.public IParameterMap selectWorkset(java.lang.String worksetName)
worksetName - The full name (no pattern) of the workset to select.
java.lang.IllegalArgumentException - if the given worksetName is null or blank.public IParameterMap selectElement(ModelElementIdentifier identifier)
identifier - The identifier of the element to select.
java.lang.IllegalArgumentException - if the given worksetName is null.public ModelElementIdentifier getSelectedElement()
public IParameterMap getElementInfo()
new ModelElementIdentifier( result )
and then use the isXXX() methods on the ModelElementIdentifier instance.
public IParameterMap analyzeDependencies(java.lang.String displayLevel,
java.lang.String dependencyLevel,
java.lang.String sortOrder,
java.lang.String sortFiled)
INames.XML_DATA which
contains the table of dependencies using HTML table tags.
displayLevel - Defines on which aggregation level to display the result table.
This parameter must be one of the following constants:
dependencyLevel - This defines the level of dependency the result
must contain. It must be one of the constants:
sortOrder - Defines how the result table must be sorted. This parameter must
be one of the following constants:
sortFiled - Defines on which field the result table must be sorted.
This parameter must be one of the following constants:
public IParameterMap analyzeDependencies()
INames.XML_DATA which
contains the table of dependencies using HTML table tags.
This is a convenience method that simple uses the defaults:
INames.CLASSINames.DEPENDENCIES_ALLINames.SORT_ASCENDINGINames.CLASS
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||