|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.inca.depot.persistent.PersistentObject
edu.sdsc.inca.depot.persistent.ArgSignature
public class ArgSignature
An ArgSignature consists of a set of arguments, alphabetized and combined into a string.
| Field Summary |
|---|
| Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
|---|
DB_EMPTY_STRING, logger, MAX_DB_LONG_STRING_LENGTH, MAX_DB_STRING_LENGTH |
| Constructor Summary | |
|---|---|
ArgSignature()
Default constructor. |
|
ArgSignature(java.util.Set args)
Full constructor. |
|
| Method Summary | |
|---|---|
void |
addArg(Arg arg)
Add the argument to the set and invalidate the current signature. |
boolean |
equals(java.lang.Object o)
Compares another object to this ArgSignature for logical equality. |
ArgSignature |
fromBean(edu.sdsc.inca.dataModel.util.Args a)
Copies information from an Inca schema XmlBean Args object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Args object so that this object contains equivalent information. |
java.util.Set |
getArgs()
Retrieve the arguments involved in creating this signature. |
java.lang.Long |
getId()
Retrieve the id -- null if not yet connected to database. |
java.lang.String |
getSignature()
retrieve the signature. |
int |
hashCode()
Calculate a hash code using the same fields that where used in equals. |
void |
setArgs(java.util.Set args)
For internal use. |
void |
setId(java.lang.Long id)
Set the id. |
void |
setSignature(java.lang.String signature)
Set the Signature to this previously-computed signature. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Args object that contains information equivalent to this object. |
java.lang.String |
toString()
Override of the default toString method. |
| Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
|---|
toXml, truncate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArgSignature()
public ArgSignature(java.util.Set args)
| Method Detail |
|---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean in class PersistentObjecto - the XmlBean Args object to copy
public ArgSignature fromBean(edu.sdsc.inca.dataModel.util.Args a)
a - the XmlBean Args object to copy
public java.lang.Long getId()
public void setId(java.lang.Long id)
id - The DB ID.public java.util.Set getArgs()
public void setArgs(java.util.Set args)
args - The set of args represented by this signature.public void addArg(Arg arg)
arg - public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
signature - The string representation of the signature.public org.apache.xmlbeans.XmlObject toBean()
toBean in class PersistentObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||