|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.depot.persistent.PersistentObject edu.sdsc.inca.depot.persistent.Arg
public class Arg
This class represents a command line input to a reporter. This class is a persistent object. It has unique constraints on the name value combination. This means that on save there will be an exception thrown if the combo already exists.
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 | |
---|---|
Arg()
Default constructor. |
|
Arg(java.lang.String name,
java.lang.String value)
Creates an Arg object with the associated name and value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares another object to this Arg for logical equality. |
Arg |
fromBean(edu.sdsc.inca.dataModel.util.Args.Arg a)
Copies information from an Inca schema XmlBean Arg object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Arg object so that this object contains equivalent information. |
java.lang.Long |
getId()
Retrieve the id -- null if not yet connected to database. |
java.lang.String |
getName()
retrieve the input name. |
java.lang.String |
getValue()
retrieve the input value. |
int |
hashCode()
Calculate a hash code using the same fields that where used in equals. |
void |
setId(java.lang.Long id)
Set the id. |
void |
setName(java.lang.String name)
set the input name. |
void |
setValue(java.lang.String value)
retrieve the input value. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Arg object that contains information equivalent to this object. |
java.lang.String |
toString()
For debugging purposes. |
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 Arg()
public Arg(java.lang.String name, java.lang.String value)
name
- The name of the command line argumentvalue
- The value of the command line argumentMethod Detail |
---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean
in class PersistentObject
o
- the XmlBean Arg object to copy
public Arg fromBean(edu.sdsc.inca.dataModel.util.Args.Arg a)
a
- the XmlBean Arg object to copy
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- The DB ID.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the command line argument.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value of the command line argument.public org.apache.xmlbeans.XmlObject toBean()
toBean
in class PersistentObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- 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 |