|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.model.FlowNodeKey
com.ibm.tws.objects.model.JobStreamKey
This object represents a job stream external key, including fields used to identify a job stream in TWS external interfaces. Since a job stream is identified by its name, a validity date and a referenced workstation or workstation class, this class includes a name attribute, a date attribute and a reference to a FlowTargetKey object.
JobStream
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
JobStreamKey()
Creates an empty JobStreamKey. |
|
JobStreamKey(java.lang.String jobStreamName,
java.util.Date jobStreamValidFrom,
boolean draft,
boolean group)
Creates a JobStreamKey with the specified name, validity date and draft and group flags. |
|
JobStreamKey(java.lang.String jobStreamName,
FlowTargetKey trgKey,
java.util.Date jobStreamValidFrom)
Creates a JobStreamKey with the specified name, workstation or workstation class key and validity date. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this JobStreamKey object are equal to those of the given one. |
FlowTargetKey |
getFlowTargetKey()
Returns the key of the workstation or workstation class referenced by this job stream. |
java.util.Date |
getValidFrom()
Returns the start date of the job stream validity period. |
int |
hashCode()
Returns a hash code for this JobStreamKey object. |
boolean |
isDraft()
Returns true if this job stream is a draft one. |
boolean |
isGroup()
Returns true if this job stream is a group of job streams. |
static JobStreamKey |
parseKey(java.lang.String key)
Parses data from the specified string and creates a new JobStreamKey. |
static JobStreamKey |
parseKey(java.lang.String key,
java.text.DateFormat dateFormat)
Parses data from the specified string and creates a new JobStreamKey. |
void |
setDateFormat(java.text.DateFormat dateFormat)
Sets the date formatter, used only by the toString() method to format the key string. |
void |
setDraft(boolean value)
Sets the property used to decide if this job stream is a draft one. |
void |
setFlowTargetKey(FlowTargetKey key)
Sets the key of the workstation or workstation class referenced by this job stream. |
void |
setGroup(boolean value)
Sets the property used to decide if this job stream is a group of job streams. |
void |
setValidFrom(java.util.Date value)
Sets the start date of the job stream validity period. |
java.lang.String |
toString()
Returns a string representation of this JobStreamKey object. |
java.lang.String |
toString(java.text.DateFormat dateFormat)
Returns a string representation of this JobStreamKey object. |
Methods inherited from class com.ibm.tws.objects.model.FlowNodeKey |
---|
getName, setName |
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 JobStreamKey()
public JobStreamKey(java.lang.String jobStreamName, FlowTargetKey trgKey, java.util.Date jobStreamValidFrom)
jobStreamName
- The job stream name.trgKey
- The key of the workstation or workstation class referenced by this job stream.jobStreamValidFrom
- The start date of the job stream validity period.public JobStreamKey(java.lang.String jobStreamName, java.util.Date jobStreamValidFrom, boolean draft, boolean group)
jobStreamName
- The job stream name.jobStreamValidFrom
- The start date of the job stream validity period.draft
- True if the job stream is a draft one.group
- True if the job stream is a group of job streams.Method Detail |
public static JobStreamKey parseKey(java.lang.String key)
key
- The string containing key data.
public static JobStreamKey parseKey(java.lang.String key, java.text.DateFormat dateFormat)
key
- The string containing key data.dateFormat
- The date format to be used for the validFrom attribute.
public FlowTargetKey getFlowTargetKey()
public java.util.Date getValidFrom()
public boolean isDraft()
public boolean isGroup()
public void setFlowTargetKey(FlowTargetKey key)
key
- The key of the workstation or workstation class referenced by this job stream.public void setValidFrom(java.util.Date value)
value
- The start date of the job stream validity period.public void setDraft(boolean value)
value
- True if this job stream is a draft one.public void setGroup(boolean value)
value
- True if this job stream is a group of job streams.public void setDateFormat(java.text.DateFormat dateFormat)
dateFormat
- The date formatter to be used to format the job stream "valid from" date.public boolean equals(java.lang.Object object)
equals
in class FlowNodeKey
object
- The object to be compared with this one.
public int hashCode()
hashCode
in class FlowNodeKey
public java.lang.String toString()
public java.lang.String toString(java.text.DateFormat dateFormat)
dateFormat
- The date format to be used for the validFrom attribute.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |