public class UpdateEventAttribute extends java.lang.Object implements EventChangeRequest
ADD_CONTEXT_DATA_ELEMENT_CHANGE_REQUEST, ADD_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST, CBE_XPATH_LOCATION_PREFIX, CHANGE_REQUEST_STRINGS, CREATE_EMPTY_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST, UPDATE_ATTRIBUTE_CHANGE_REQUEST, UPDATE_EVENT_ASSOCIATION_CHANGE_REQUEST, UPDATE_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST
Constructor and Description |
---|
UpdateEventAttribute(java.lang.String globalInstanceId)
Creates a new UpdateEventAttribute object.
|
Modifier and Type | Method and Description |
---|---|
int |
getChangeRequestType()
Get the type of change request this object represents.
|
long |
getElapsedTime()
Get the new value for elapsed time.
|
java.lang.String |
getGlobalInstanceId()
Get the global instance ID of the event that this change request is
modifying.
|
short |
getPriority()
Get the new value for priority.
|
short |
getRepeatCount()
Get the new value for repeat count.
|
short |
getSeverity()
Get the new value for severity.
|
boolean |
isElapsedTimeSet()
Verify if an elapsed time value is set for this change request.
|
boolean |
isPrioritySet()
Verify if a priority value is set for this change request.
|
boolean |
isRepeatCountSet()
Verify if a repeat count value is set for this change request.
|
boolean |
isSeveritySet()
Verify if a severity value is set for this change request.
|
void |
setElapsedTime(long elapsedTime)
Set a new elapsed time value for the attribute change change request.
|
void |
setPriority(short priority)
Set a new priority value for the attribute change change request.
|
void |
setRepeatCount(short repeatCount)
Set a new repeat count value for the attribute change change request.
|
void |
setSeverity(short severity)
Set a new severity value for the attribute change change request.
|
java.lang.String |
toString() |
public UpdateEventAttribute(java.lang.String globalInstanceId)
globalInstanceId
- The global instance ID of the event whose
attributes will be updated.java.lang.IllegalArgumentException
- If globalInstanceId is null or not
valid.public int getChangeRequestType()
EventChangeRequest
getChangeRequestType
in interface EventChangeRequest
EventChangeRequest.getChangeRequestType()
public void setElapsedTime(long elapsedTime)
elapsedTime
- The value to set the elapsed time to.public long getElapsedTime()
public boolean isElapsedTimeSet()
public java.lang.String getGlobalInstanceId()
EventChangeRequest
getGlobalInstanceId
in interface EventChangeRequest
EventChangeRequest.getGlobalInstanceId()
public void setPriority(short priority)
priority
- The value to set the priority to.java.lang.IllegalArgumentException
- If priority is not a value from 0 to
100.public short getPriority()
public boolean isPrioritySet()
public void setRepeatCount(short repeatCount)
repeatCount
- The value to set the repeat count to.java.lang.IllegalArgumentException
- DOCUMENT ME!public short getRepeatCount()
public boolean isRepeatCountSet()
public void setSeverity(short severity)
severity
- The value to set the severity to.java.lang.IllegalArgumentException
- If severity is not a value from 0 to
70.public short getSeverity()
public boolean isSeveritySet()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()