|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.core.model.process.Element
org.talend.designer.core.ui.editor.process.Process
public class Process
The diagram will contain all elements (nodes, connections) The xml that describes the diagram will be saved from the
information of this class.
$Id: Process.java 3001 2007-04-10 07:08:23 +0000 (mar., 10 avr. 2007) nrousseau $
| Field Summary | |
|---|---|
static int |
BREAKPOINT_STATUS
|
static java.lang.String |
DEFAULT_CONNECTION_NAME
|
protected java.util.List<Element> |
elem
|
static int |
ERROR_STATUS
|
protected java.util.List<Node> |
nodes
|
static java.lang.String |
NODES
|
protected java.util.List<Note> |
notes
|
static java.lang.String |
NOTES
|
static org.eclipse.swt.graphics.Color |
READ_ONLY_COLOR
|
static org.eclipse.swt.graphics.Color |
READ_WRITE_COLOR
|
static int |
WARNING_STATUS
|
| Fields inherited from class org.talend.core.model.process.Element |
|---|
ALPHA_VALUE, listeners |
| Constructor Summary | |
|---|---|
Process()
|
|
Process(Property property)
|
|
| Method Summary | |
|---|---|
void |
addNodeContainer(NodeContainer nodeContainer)
Add a new node to the diagram. |
void |
addNote(Note note)
|
void |
addUniqueConnectionName(java.lang.String uniqueConnectionName)
|
void |
addUniqueNodeName(java.lang.String uniqueName)
This function will take a unique name and update the list with the given name. |
boolean |
checkDifferenceWithRepository()
DOC nrousseau Comment method "checkDifferenceWithRepository". |
void |
checkLoadNodes()
Checks if there are unloaded nodes.If there are some nodes unloaded, throws PersistenceException. |
void |
checkNodeProblems()
DOC check the problems of node.compare with the checkProblems(),this method can't refresh problems view. |
void |
checkProcess()
DOC nrousseau Comment method "checkProcess". |
boolean |
checkReadOnly()
|
void |
checkStartNodes()
|
boolean |
checkValidConnectionName(java.lang.String connectionName)
Check if the given name will be unique in the process. |
boolean |
checkValidConnectionName(java.lang.String connectionName,
boolean checkExists)
Check if the given name will be unique in the process. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
generateUniqueConnectionName(java.lang.String baseName)
Manage to find a unique name with the given name. |
java.lang.String |
generateUniqueNodeName(INode node)
|
User |
getAuthor()
|
java.util.List<IRepositoryObject> |
getChildren()
|
IContextManager |
getContextManager()
|
java.util.Date |
getCreationDate()
|
java.lang.String |
getDescription()
|
java.lang.String |
getElementName()
|
java.util.List |
getElements()
Get the list of all elements, Node and Connection. |
java.util.List<? extends INode> |
getGeneratingNodes()
|
java.util.List<? extends INode> |
getGraphicalNodes()
|
java.lang.String |
getId()
Returns the process id. |
java.lang.String |
getLabel()
Returns the process label. |
ProcessItem |
getMasterJob()
|
static IMetadataTable |
getMetadataFromRepository(java.lang.String metaRepositoryName)
|
java.util.Date |
getModificationDate()
|
java.lang.String |
getName()
|
java.util.List<INode> |
getNodesOfType(java.lang.String componentName)
Return all Nodes of Component type componentName. |
IProcessor |
getProcessor()
Getter for processor. |
Project |
getProject()
|
Property |
getProperty()
|
java.lang.String |
getPurpose()
|
java.lang.String |
getRepositoryId()
|
java.lang.String |
getStatusCode()
|
ERepositoryObjectType |
getType()
|
java.lang.String |
getVersion()
Returns the process version. |
java.io.InputStream |
getXmlStream()
|
int |
hashCode()
|
boolean |
isActivate()
|
boolean |
isGridEnabled()
Returns true if the grid is enabled. |
boolean |
isReadOnly()
|
boolean |
isSnapToGeometryEnabled()
Returns true if the SnapToGeometry is enabled. |
boolean |
isThereRefLink(INode node)
This function check if in this subprocess there should be a start or not depends on the ref links. |
void |
loadXmlFile(ProcessType process)
DOC mhelleboid Comment method "loadXmlFile". |
void |
removeNodeContainer(NodeContainer nodeContainer)
Remove a node to the diagram. |
void |
removeNote(Note note)
|
void |
removeUniqueConnectionName(java.lang.String uniqueConnectionName)
|
void |
removeUniqueNodeName(java.lang.String uniqueName)
|
ProcessType |
saveXmlFile(org.eclipse.core.resources.IFile file)
Save the diagram in a Xml File. |
void |
setActivate(boolean activate)
|
void |
setActivate(Node node,
boolean active)
|
void |
setAsMasterJob()
|
void |
setAuthor(User author)
|
void |
setCreationDate(java.util.Date value)
|
void |
setDescription(java.lang.String value)
|
void |
setId(java.lang.String id)
|
void |
setLabel(java.lang.String label)
|
void |
setModificationDate(java.util.Date value)
|
void |
setProcessor(IProcessor processor)
Sets the processor. |
void |
setProperty(Property property)
|
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Set the property of the object. |
void |
setPurpose(java.lang.String value)
|
void |
setReadOnly(boolean readOnly)
|
void |
setRepositoryId(java.lang.String repositoryId)
|
void |
setStatusCode(java.lang.String statusCode)
|
void |
setVersion(java.lang.String version)
|
void |
setViewer(org.eclipse.gef.GraphicalViewer viewer)
|
void |
setXmlStream(java.io.InputStream xmlStream)
|
java.lang.String |
toString()
|
| Methods inherited from class org.talend.core.model.process.Element |
|---|
addElementParameter, addPropertyChangeListener, firePropertyChange, fireStructureChange, getElementParameter, getElementParameters, getPropertyValue, removePropertyChangeListener, setElementParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.talend.core.model.process.IElement |
|---|
getElementParameters, setElementParameters |
| Field Detail |
|---|
public static final java.lang.String NODES
public static final java.lang.String NOTES
public static final java.lang.String DEFAULT_CONNECTION_NAME
protected java.util.List<Node> nodes
protected java.util.List<Element> elem
protected java.util.List<Note> notes
public static final org.eclipse.swt.graphics.Color READ_ONLY_COLOR
public static final org.eclipse.swt.graphics.Color READ_WRITE_COLOR
public static final int BREAKPOINT_STATUS
public static final int ERROR_STATUS
public static final int WARNING_STATUS
| Constructor Detail |
|---|
public Process()
public Process(Property property)
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void addNodeContainer(NodeContainer nodeContainer)
node - public void removeNodeContainer(NodeContainer nodeContainer)
node - public java.util.List getElements()
public java.util.List<? extends INode> getGraphicalNodes()
getGraphicalNodes in interface IProcesspublic java.util.List<? extends INode> getGeneratingNodes()
getGeneratingNodes in interface IProcesspublic void setViewer(org.eclipse.gef.GraphicalViewer viewer)
public boolean isGridEnabled()
public boolean isSnapToGeometryEnabled()
public static IMetadataTable getMetadataFromRepository(java.lang.String metaRepositoryName)
public ProcessType saveXmlFile(org.eclipse.core.resources.IFile file)
throws java.io.IOException
file -
java.io.IOExceptionpublic void loadXmlFile(ProcessType process)
process -
public void checkLoadNodes()
throws PersistenceException
PersistenceException - PersistenceExceptionpublic boolean checkDifferenceWithRepository()
public boolean isReadOnly()
isReadOnly in interface IElementpublic boolean checkReadOnly()
public void setReadOnly(boolean readOnly)
setReadOnly in interface IElementpublic java.lang.String getElementName()
getElementName in class Elementpublic java.lang.String getName()
getName in interface IProcesspublic User getAuthor()
getAuthor in interface IRepositoryObjectpublic java.lang.String getId()
IRepositoryObject
getId in interface IRepositoryObjectpublic java.lang.String getLabel()
IRepositoryObject
getLabel in interface IRepositoryObjectpublic java.lang.String getStatusCode()
getStatusCode in interface IRepositoryObjectpublic java.lang.String getVersion()
IRepositoryObject
getVersion in interface IRepositoryObjectpublic void setAuthor(User author)
setAuthor in interface IRepositoryObjectpublic void setId(java.lang.String id)
setId in interface IRepositoryObjectpublic void setLabel(java.lang.String label)
setLabel in interface IRepositoryObjectpublic void setStatusCode(java.lang.String statusCode)
setStatusCode in interface IRepositoryObjectpublic void setVersion(java.lang.String version)
setVersion in interface IRepositoryObjectpublic java.io.InputStream getXmlStream()
public void setXmlStream(java.io.InputStream xmlStream)
public boolean isActivate()
public void setActivate(boolean activate)
public boolean checkValidConnectionName(java.lang.String connectionName,
boolean checkExists)
checkValidConnectionName in interface IProcessuniqueName - checkEsists -
public boolean checkValidConnectionName(java.lang.String connectionName)
checkValidConnectionName in interface IProcessuniqueName -
public java.lang.String generateUniqueConnectionName(java.lang.String baseName)
generateUniqueConnectionName in interface IProcesstitleName - public void addUniqueConnectionName(java.lang.String uniqueConnectionName)
addUniqueConnectionName in interface IProcesspublic void removeUniqueConnectionName(java.lang.String uniqueConnectionName)
removeUniqueConnectionName in interface IProcesspublic java.lang.String generateUniqueNodeName(INode node)
public void addUniqueNodeName(java.lang.String uniqueName)
uniqueName - public void removeUniqueNodeName(java.lang.String uniqueName)
public void setActivate(Node node,
boolean active)
public void checkStartNodes()
public boolean isThereRefLink(INode node)
node -
public void checkProcess()
propagate - public void checkNodeProblems()
public java.lang.String toString()
toString in class java.lang.Objectpublic ERepositoryObjectType getType()
getType in interface IRepositoryObjectpublic IContextManager getContextManager()
getContextManager in interface IProcesspublic java.util.Date getCreationDate()
getCreationDate in interface IRepositoryObjectpublic java.lang.String getDescription()
getDescription in interface IRepositoryObjectpublic java.util.Date getModificationDate()
getModificationDate in interface IRepositoryObjectpublic java.lang.String getPurpose()
getPurpose in interface IRepositoryObjectpublic void setCreationDate(java.util.Date value)
setCreationDate in interface IRepositoryObjectpublic void setDescription(java.lang.String value)
setDescription in interface IRepositoryObjectpublic void setModificationDate(java.util.Date value)
setModificationDate in interface IRepositoryObjectpublic void setPurpose(java.lang.String value)
setPurpose in interface IRepositoryObject
public void setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Element
setPropertyValue in class Elementpublic Property getProperty()
getProperty in interface IRepositoryObjectpublic void setProperty(Property property)
setProperty in interface IRepositoryObjectpublic java.util.List<IRepositoryObject> getChildren()
getChildren in interface IRepositoryObjectpublic java.util.List<INode> getNodesOfType(java.lang.String componentName)
getNodesOfType in interface IProcesscomponentName - the component name
public Project getProject()
public void setAsMasterJob()
public ProcessItem getMasterJob()
public java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String repositoryId)
public void addNote(Note note)
public void removeNote(Note note)
public IProcessor getProcessor()
getProcessor in interface IProcesspublic void setProcessor(IProcessor processor)
setProcessor in interface IProcessprocessor - the processor to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||