edu.sdsc.inca.depot.persistent
Class AcceptedOutput

java.lang.Object
  extended by edu.sdsc.inca.depot.persistent.PersistentObject
      extended by edu.sdsc.inca.depot.persistent.AcceptedOutput

public class AcceptedOutput
extends PersistentObject

This class represents the accepted output for a reporter and matches with the xml schemas idea of acceptedOutput.

Author:
cmills

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
AcceptedOutput()
          Default constructor.
AcceptedOutput(java.lang.String comparitor, java.lang.String comparison)
          Full constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Override of the default equals method.
 AcceptedOutput fromBean(edu.sdsc.inca.dataModel.util.AcceptedOutput ao)
          Copies information from an Inca schema XmlBean AcceptedOutput object so that this object contains equivalent information.
 PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
          Copies information from an Inca schema XmlBean AcceptedOutput object so that this object contains equivalent information.
 java.lang.String getComparison()
          Get the comparison portion of the AcceptedOutput.
 java.lang.String getComparitor()
          Get the comparitor class name of the AcceptedOutput.
 Notification getNotification()
          Get the notification information of the AcceptedOutput.
 void setComparison(java.lang.String comparison)
          Set the comparison of the AcceptedOutput.
 void setComparitor(java.lang.String comparitor)
          Set the comparitor class name of the AcceptedOutput.
 void setNotification(Notification notification)
          Set the notification information of the AcceptedOutput.
 org.apache.xmlbeans.XmlObject toBean()
          Returns a Inca schema XmlBean AcceptedOutput object that contains information equivalent to this object.
 java.lang.String toString()
           
 
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject
toXml, truncate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AcceptedOutput

public AcceptedOutput()
Default constructor.


AcceptedOutput

public AcceptedOutput(java.lang.String comparitor,
                      java.lang.String comparison)
Full constructor.

Parameters:
comparitor - this name of the class that does the comparison
comparison - the correct value to pass to the comparitor
Method Detail

fromBean

public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean AcceptedOutput object so that this object contains equivalent information.

Specified by:
fromBean in class PersistentObject
Parameters:
o - the XmlBean AcceptedOutput object to copy
Returns:
this, for convenience

fromBean

public AcceptedOutput fromBean(edu.sdsc.inca.dataModel.util.AcceptedOutput ao)
Copies information from an Inca schema XmlBean AcceptedOutput object so that this object contains equivalent information.

Parameters:
ao - the XmlBean AcceptedOutput object to copy
Returns:
this, for convenience

getComparison

public java.lang.String getComparison()
Get the comparison portion of the AcceptedOutput.

Returns:
the AcceptedObject comparison string

setComparison

public void setComparison(java.lang.String comparison)
Set the comparison of the AcceptedOutput.

Parameters:
comparison - the AcceptedOutput comparison string

getComparitor

public java.lang.String getComparitor()
Get the comparitor class name of the AcceptedOutput.

Returns:
the AcceptedObject comparitor class name

setComparitor

public void setComparitor(java.lang.String comparitor)
Set the comparitor class name of the AcceptedOutput.

Parameters:
comparitor - the AcceptedObject comparitor class name

getNotification

public Notification getNotification()
Get the notification information of the AcceptedOutput.

Returns:
the AcceptedObject notification information

setNotification

public void setNotification(Notification notification)
Set the notification information of the AcceptedOutput.

Parameters:
notification - the AcceptedObject notification information

toBean

public org.apache.xmlbeans.XmlObject toBean()
Returns a Inca schema XmlBean AcceptedOutput object that contains information equivalent to this object.

Specified by:
toBean in class PersistentObject
Returns:
an XmlBean AcceptedOutput object that contains equivalent information

toString

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

equals

public boolean equals(java.lang.Object o)
Override of the default equals method.

Overrides:
equals in class java.lang.Object