com.cysols.iodef.element
Class Incident

java.lang.Object
  extended by com.cysols.iodef.IElement
      extended by com.cysols.iodef.element.Incident

public class Incident
extends IElement

This class is value object which represents Incident element.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addAdditionalData(AdditionalData data)
          Adds the specified additional data element
 void addAssessment(Assessment me)
          Adds the specified assessment element
 void addContanct(Contact con)
          Adds the specified contact element.
 void addDescriptionValue(String descr)
          Adds the specified desciption value.
 void addEventData(EventData event)
          Adds the specified event data element
 void addExpectation(Expectation exp)
          Adds the specified expectation element
 void addMethod(Method me)
          Adds the specified method element
 AdditionalData[] getAdditionalDatas()
          Returns the array of additional data value.
 AlternativeID getAlternativeID()
          Returns the alternative id element.
 Assessment[] getAssessments()
          Returns the array of assessment value.
 Contact[] getContacts()
          Returns the array of Contact element.
 String[] getDescriptionValues()
          Returns the array of description value.
 String getDetectTimeValue()
          Returns the detect time value.
 String getEndTimeValue()
          Returns the end time value.
 EventData[] getEventDatas()
          Returns the array of event data value.
 Expectation[] getExpectations()
          Returns the array of expectation value.
 History getHistory()
          Returns the history element.
 String getIncidentIDIssur()
          Returns the Issuer attribute value of incident id node.
 String getIncidentIDValue()
          Returns the incident id value.
 Method[] getMethods()
          Returns the array of Method value.
 String getPurpose()
          Returns the purpose value.
 RelatedActivity getRelatedActivity()
          Returns the related activity element.
 String getReportTimeValue()
          Returns the report time value.
 String getRestriction()
          Returns the restriction value.
 String getStartTimeValue()
          Returns the start time value.
 void setAlternativeID(AlternativeID id)
          Sets the specified AlternativeID elment.
 void setAttribute(String namespece, String name, String value)
          Sets the attribute with the specified namespece and name
 void setDetectTimeValue(String value)
          Sets the detect time value.
 void setEndTimeValue(String value)
          Sets the end time value.
 void setHistory(History his)
          Sets the specified history elment.
 void setIncidentIDValue(String value, String issuer)
          Sets the incident id value.
 void setIncidentIDValue(String value, String issuer, String rest)
          Sets the incident id values.
 void setPurpose(String value)
          Sets the specified purpose value.
 void setRelatedActivity(RelatedActivity value)
          Sets the specified RelatedActivity elment.
 void setReportTimeValue(String value)
          Sets the report time value.
 void setRestriction(String value)
          Sets the specified restriction value.
 void setStartTimeValue(String value)
          Sets the start time value.
 
Methods inherited from class com.cysols.iodef.IElement
addElement, addElementValue, createAttribute, createDomElement, createrElement, getAttribute, getAttributeNames, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueINS, getAttributeValuesINS, getElementList, getElementName, getElements, getElements, getElements, getElementsINS, getElementsValue, getElementValue, getNameSpace, getValue, removeAttribute, removeAttribute, removeElements, setAttribute, setAttribute, setAttributeINS, setElementINS, setElementsINS, setElementValue, setNameSpace, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setIncidentIDValue

public void setIncidentIDValue(String value,
                               String issuer)
Sets the incident id value.

Parameters:
value - - incident id value
issuer - - the Issuer attribute value.

setIncidentIDValue

public void setIncidentIDValue(String value,
                               String issuer,
                               String rest)
Sets the incident id values.

Parameters:
value - - incident id value

getIncidentIDValue

public String getIncidentIDValue()
Returns the incident id value. reutrns null if it doesn't exist.

Returns:
incident id value

getIncidentIDIssur

public String getIncidentIDIssur()
Returns the Issuer attribute value of incident id node. reutrns null if it doesn't exist.

Returns:
incident id value

setAlternativeID

public void setAlternativeID(AlternativeID id)
Sets the specified AlternativeID elment.

Parameters:
id - - the alternative id element.

getAlternativeID

public AlternativeID getAlternativeID()
Returns the alternative id element. return null if it doesn't exist.

Returns:
the alternative id elment.

setRelatedActivity

public void setRelatedActivity(RelatedActivity value)
Sets the specified RelatedActivity elment.

Parameters:
value - - the related activity element.

getRelatedActivity

public RelatedActivity getRelatedActivity()
Returns the related activity element. return null if it doesn't exist.

Returns:
the related activity element.

addDescriptionValue

public void addDescriptionValue(String descr)
Adds the specified desciption value.

Parameters:
descr - - desciption value

getDescriptionValues

public String[] getDescriptionValues()
Returns the array of description value. reutrns null if they doesn't exist.

Returns:
the array of description value.

addContanct

public void addContanct(Contact con)
Adds the specified contact element.

Parameters:
con - - contact element

getContacts

public Contact[] getContacts()
Returns the array of Contact element. reutrns null if they doesn't exist.

Returns:
the array of contact element.

setReportTimeValue

public void setReportTimeValue(String value)
Sets the report time value.

Parameters:
value - - report time value

getReportTimeValue

public String getReportTimeValue()
Returns the report time value. reutrns null if it doesn't exist.

Returns:
report time value

setDetectTimeValue

public void setDetectTimeValue(String value)
Sets the detect time value.

Parameters:
value - - detect time value

getDetectTimeValue

public String getDetectTimeValue()
Returns the detect time value. reutrns null if it doesn't exist.

Returns:
detect time value

setStartTimeValue

public void setStartTimeValue(String value)
Sets the start time value.

Parameters:
value - - start time value

getStartTimeValue

public String getStartTimeValue()
Returns the start time value. reutrns null if it doesn't exist.

Returns:
start time value

setEndTimeValue

public void setEndTimeValue(String value)
Sets the end time value.

Parameters:
value - - end time value

getEndTimeValue

public String getEndTimeValue()
Returns the end time value. reutrns null if it doesn't exist.

Returns:
end time value

addExpectation

public void addExpectation(Expectation exp)
Adds the specified expectation element

Parameters:
exp - - expectation element

getExpectations

public Expectation[] getExpectations()
Returns the array of expectation value. reutrns null if they doesn't exist.

Returns:
the array of expectation value

addMethod

public void addMethod(Method me)
Adds the specified method element

Parameters:
me - - method element

getMethods

public Method[] getMethods()
Returns the array of Method value. reutrns null if it doesn't exist.

Returns:
the array of mehod value

addAssessment

public void addAssessment(Assessment me)
Adds the specified assessment element

Parameters:
me - - assessment element

getAssessments

public Assessment[] getAssessments()
Returns the array of assessment value. reutrns null if it doesn't exist.

Returns:
the array of assessment value

addEventData

public void addEventData(EventData event)
Adds the specified event data element

Parameters:
event - - the event data element

getEventDatas

public EventData[] getEventDatas()
Returns the array of event data value. reutrns null if it doesn't exist.

Returns:
the array of event data value

setHistory

public void setHistory(History his)
Sets the specified history elment.

Parameters:
his - - the history element.

getHistory

public History getHistory()
Returns the history element. return null if it doesn't exist.

Returns:
the history elment.

addAdditionalData

public void addAdditionalData(AdditionalData data)
Adds the specified additional data element

Parameters:
data - - the additional data element

getAdditionalDatas

public AdditionalData[] getAdditionalDatas()
Returns the array of additional data value. reutrns null if they doesn't exist.

Returns:
the array of additional data element

setRestriction

public void setRestriction(String value)
Sets the specified restriction value.

Parameters:
value - - restriction value

getRestriction

public String getRestriction()
Returns the restriction value. reutrns null if it doesn't exist.

Returns:
the restriction value.

setPurpose

public void setPurpose(String value)
Sets the specified purpose value.

Parameters:
value - - purpose value

getPurpose

public String getPurpose()
Returns the purpose value. reutrns null if it doesn't exist.

Returns:
the purpose value.

setAttribute

public void setAttribute(String namespece,
                         String name,
                         String value)
Sets the attribute with the specified namespece and name

Overrides:
setAttribute in class IElement
Parameters:
namespece - namespece of attribute
name - name of attribute
value - value of attribute