oracle.cle.process
Class ProcessInfo

java.lang.Object
  |
  +--oracle.cle.process.ProcessInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
ProcessParameter, ProcessResult

public class ProcessInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A Process can produce one or more ProcessResults as its work products or require 0 or more ProcessParameters. ProcessResults/Paramters are named, have descriptions, types, and values.
This class is a simple Information holder.

See Also:
Serialized Form

Field Summary
protected  java.lang.String description
           
protected  java.lang.String name
           
protected  java.lang.String producer
          This is the Process object that produced this info as a Result
protected  java.lang.String type
           
protected  java.lang.Object value
           
 
Constructor Summary
ProcessInfo(ProcessInfo aProcessInfo)
          Copy Constructor
ProcessInfo(java.lang.String nameString, java.lang.String typeString, java.lang.String descriptionString, java.lang.Object value)
           
ProcessInfo(java.lang.String nameString, java.lang.String typeString, java.lang.String descriptionString, Process producer, java.lang.Object value)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object anObject)
          Override Object.equals() so that we can differentiate ProcessInfo copies.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getProducer()
           
 java.lang.String getType()
          8/23/99: Luis Amat and Dan Richner: Changed this to return String instead of Class
 java.lang.Object getValue()
           
 int hashCode()
          Override Object.hashCode() so that we can differentiate copies of the ProcessInfo.
 boolean isReady()
          Returns true if this ProcessInfo's value is not null...
 boolean isSame(ProcessInfo aProcessInfo)
           
 void reset()
          Makes this ProcessInfo's value field null.
 void setDescription(java.lang.String aString)
           
 void setName(java.lang.String aString)
           
 void setProducer(Process aProcess)
           
 void setProducer(java.lang.String aProcess)
           
 void setType(java.lang.String aString)
           
 void setValue(java.lang.Object anObject)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

type

protected java.lang.String type

description

protected java.lang.String description

value

protected java.lang.Object value

producer

protected java.lang.String producer
This is the Process object that produced this info as a Result
Constructor Detail

ProcessInfo

public ProcessInfo(java.lang.String nameString,
                   java.lang.String typeString,
                   java.lang.String descriptionString,
                   java.lang.Object value)

ProcessInfo

public ProcessInfo(java.lang.String nameString,
                   java.lang.String typeString,
                   java.lang.String descriptionString,
                   Process producer,
                   java.lang.Object value)

ProcessInfo

public ProcessInfo(ProcessInfo aProcessInfo)
Copy Constructor
Method Detail

getType

public java.lang.String getType()
8/23/99: Luis Amat and Dan Richner: Changed this to return String instead of Class

setType

public void setType(java.lang.String aString)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String aString)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String aString)

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object anObject)

setProducer

public void setProducer(Process aProcess)
Parameters:
Process - object that produced this info as a Result

setProducer

public void setProducer(java.lang.String aProcess)

getProducer

public java.lang.String getProducer()
Returns:
Process object that produced this info as a Result

isReady

public boolean isReady()
Returns true if this ProcessInfo's value is not null... false otherwise.

reset

public void reset()
Makes this ProcessInfo's value field null.

equals

public boolean equals(java.lang.Object anObject)
Override Object.equals() so that we can differentiate ProcessInfo copies.
Overrides:
equals in class java.lang.Object
See Also:
Object

isSame

public boolean isSame(ProcessInfo aProcessInfo)

hashCode

public int hashCode()
Override Object.hashCode() so that we can differentiate copies of the ProcessInfo. Ignores whether or not the ProcessInfo is ready. Uses the String class' hashCode method because the mere mortals who wrote this method didn't want to be bothered by writing it.
Overrides:
hashCode in class java.lang.Object
See Also:
Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object


Copyright © 2003 ORACLE Corp. All Rights Reserved.