|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.idm.util.progress.info.StateInfo
public class StateInfo
StateInfo represents state information about the operation whose progress is being reported.
Field Summary | |
---|---|
static long |
UNKNOWN UNKNOWN has a value of -1L and indicates unknown time stamp. |
Constructor Summary | |
---|---|
StateInfo() Creates StateInfo with null current state and UNKNOWN time stamp. |
|
StateInfo(long timeStamp) Creates StateInfo with null current state and the given time stamp |
|
StateInfo(java.lang.String current) Creates StateInfo with the given current state and UNKNOWN time stamp. |
|
StateInfo(java.lang.String current, long timeStamp) Creates StateInfo with the given current state and time stamp. |
Method Summary | |
---|---|
java.lang.Object |
clone() Clones StateInfo. |
java.lang.String |
getCurrent() Getter for the current state property. |
long |
getTimeStamp() Getter for the timeStamp property. |
boolean |
isCurrent(java.lang.String state) Checks if the current state equals the state parameter. |
void |
setCurrent(java.lang.String current) Setter for the current state property. |
void |
setTimeStamp() Setter for the timeStamp property. |
void |
setTimeStamp(long timeStamp) Setter for the timeStamp property. |
java.lang.String |
toString() Returns a string representation of StateInfo. |
void |
xprint(XmlPrintWriter out) Prints stateInfo properties to the PrintWriter as an XML element. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long UNKNOWN
Constructor Detail |
---|
public StateInfo()
public StateInfo(long timeStamp)
public StateInfo(java.lang.String current)
current
- String representation of the current state.public StateInfo(java.lang.String current, long timeStamp)
current
- String representation of the current state.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getCurrent()
public void setCurrent(java.lang.String current)
public boolean isCurrent(java.lang.String state)
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
public void setTimeStamp()
public void xprint(XmlPrintWriter out)
xprint
in interface XmlPrintable
out
- PrintWriter for printing stateInfo propeties.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |