|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.model.FileDependency
Like other dependencies, file dependencies are logical associations between jobs or job streams and the objects on which they depend (in this case, the files). However, since TWS does not maintain information about files as separate business objects, a FileDependency does not reference any File object, which does not exist. Instead, it includes all attributes of the referenced file (for instance the file name) within the dependency object itself. For the same reason, since files are logically linked to the targets where they are located, FileDependency includes also a FlowTargetKey object, to represent the workstation (or workstation class) on which the file is defined.
The following syntax validation constraints must be met on FileDependency objects:
fileName | Always required |
Not longer than 148 characters | |
Base name not longer than 28 characters | |
flowTargetKey | Must reference an existing workstation or class |
qualifiers | '(' and ')' characters not allowed |
Also notice that the concatenation of the file path and the qualifiers string cannot exceed 120 characters.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
FileDependency()
Creates an empty FileDependency. |
|
FileDependency(java.lang.String name,
FlowTargetKey trgKey)
Creates a FileDependency, specifying the name and target of the file. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this FileDependency object are equal to those of the given one. |
Identifier |
getFileId()
Returns the file identifier. |
java.lang.String |
getFileName()
Returns the file name. |
Identifier |
getFlowTargetId()
Returns the identifier of the workstation or workstation class referenced by this file. |
FlowTargetKey |
getFlowTargetKey()
Returns the key of the workstation or workstation class referenced by this file. |
Identifier |
getId()
Returns the identifier of the file referenced by this dependency. |
java.lang.String |
getQualifiers()
Returns the requested file qualifiers. |
int |
hashCode()
Returns a hash code for this FileDependency object. |
void |
setFileId(Identifier identifier)
Sets the file identifier. |
void |
setFileName(java.lang.String value)
Sets the file name. |
void |
setFlowTargetId(Identifier identifier)
Sets the identifier of the workstation or workstation class referenced by this file. |
void |
setFlowTargetKey(FlowTargetKey key)
Sets the key of the workstation or workstation class referenced by this file. |
void |
setQualifiers(java.lang.String value)
Sets the requested file qualifiers. |
java.lang.String |
toString()
Returns a string representation of this FileDependency object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public FileDependency()
public FileDependency(java.lang.String name, FlowTargetKey trgKey)
name
- The file name.trgKey
- The key of the workstation or workstation class referenced by this file.Method Detail |
public Identifier getId()
getId
in interface TWSLink
public Identifier getFileId()
public java.lang.String getFileName()
public Identifier getFlowTargetId()
public FlowTargetKey getFlowTargetKey()
public java.lang.String getQualifiers()
public void setFileId(Identifier identifier)
identifier
- The file identifier.public void setFileName(java.lang.String value)
value
- The file name.public void setFlowTargetId(Identifier identifier)
identifier
- The identifier of the workstation or workstation class referenced by this file.public void setFlowTargetKey(FlowTargetKey key)
key
- The key of the workstation or workstation class referenced by this file.public void setQualifiers(java.lang.String value)
value
- The requested file qualifiers.public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |