edu.sdsc.inca.depot.persistent
Class Notification

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

public class Notification
extends PersistentObject

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
Notification()
          Default constructor.
Notification(java.lang.String notifier, java.lang.String target)
          Full constructor.
 
Method Summary
 Notification fromBean(edu.sdsc.inca.dataModel.util.Notifications.Notification n)
          Copies information from an Inca schema XmlBean Notification object so that this object contains equivalent information.
 PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
          Copies information from an Inca schema XmlBean Notification object so that this object contains equivalent information.
 java.lang.String getNotifier()
          Returns the name of the class that performs this notification.
 java.lang.String getTarget()
          Returns the target that is sent this notification.
 void setNotifier(java.lang.String notifier)
          Sets the name of the class that performs this notification.
 void setTarget(java.lang.String target)
          Set the target that is sent this notification.
 org.apache.xmlbeans.XmlObject toBean()
          Returns a Inca schema XmlBean Notification object that contains information equivalent to this object.
 
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject
toXml, truncate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification()
Default constructor.


Notification

public Notification(java.lang.String notifier,
                    java.lang.String target)
Full constructor.

Method Detail

fromBean

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

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

fromBean

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

Parameters:
n - the XmlBean Notification object to copy
Returns:
this, for convenience

getNotifier

public java.lang.String getNotifier()
Returns the name of the class that performs this notification.

Returns:
this name of the class that performs this notification.

setNotifier

public void setNotifier(java.lang.String notifier)
Sets the name of the class that performs this notification.

Parameters:
notifier - this name of the class that performs this notification.

getTarget

public java.lang.String getTarget()
Returns the target that is sent this notification.

Returns:
the target that is sent this notification.

setTarget

public void setTarget(java.lang.String target)
Set the target that is sent this notification.

Parameters:
target - the target that is sent this notification.

toBean

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

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