com.cysols.iodef.element
Class Assessment

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

public class Assessment
extends IElement

This class is value object which represents Assessment element.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addImpact(Impact impact)
          Adds the specified impact element.
 IElement addImpactValue(String impact)
          Adds the specified value to Impact elment.
 void addMonetaryImpactValue(String value, String currency)
          Adds the specified value to MonetaryImpact elment.
 void addMonetaryImpactValue(String value, String severity, String currency)
          Adds the specified value to MonetaryImpact elment.
 IElement addTimeImpactValue(String value, String unit)
          Adds the specified value to TimeImpact elment.
 String getConfidenceRating()
          Returns the reting value of Confidence element.
 Impact[] getImpacts()
          Returns the array of Impact element.
 String[] getImpactValues()
          Returns the array of impact value.
 String[] getMonetaryImpactValues()
          Returns the array of monetary impact value.
 String getRestriction()
          Returns the restriction value.
 String[] getTimeImpactValues()
          Returns the array of time impact value.
 void setConfidenceRating(String value)
          Sets the specified value to rating of Confidence.
 void setRestriction(String value)
          Sets the specified restriction 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, 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

setRestriction

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

Parameters:
value - the restriction value

getRestriction

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

Returns:
the restriction value.

addImpactValue

public IElement addImpactValue(String impact)
Adds the specified value to Impact elment.

Parameters:
impact - the impact value

getImpactValues

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

Returns:
the array of impact value

addImpact

public void addImpact(Impact impact)
Adds the specified impact element.

Parameters:
impact - the impact element

getImpacts

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

Returns:
the array of Impact element

addTimeImpactValue

public IElement addTimeImpactValue(String value,
                                   String unit)
Adds the specified value to TimeImpact elment.

Parameters:
value - the time impact value
unit - the unit value as attrivute of TimeImpct element.

getTimeImpactValues

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

Returns:
the array of time impact value

addMonetaryImpactValue

public void addMonetaryImpactValue(String value,
                                   String currency)
Adds the specified value to MonetaryImpact elment.

Parameters:
value - the monetary impact value
currency - the currency value of attrivute of MonetaryImpact element.

addMonetaryImpactValue

public void addMonetaryImpactValue(String value,
                                   String severity,
                                   String currency)
Adds the specified value to MonetaryImpact elment.

Parameters:
value - the monetary impact value
severity - the severity value of attribute of MonetaryImpact element.
currency - the currency value of attribute of MonetaryImpact element.

getMonetaryImpactValues

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

Returns:
the array of monetary impact value

setConfidenceRating

public void setConfidenceRating(String value)
Sets the specified value to rating of Confidence.

Parameters:
value - the reting value

getConfidenceRating

public String getConfidenceRating()
Returns the reting value of Confidence element. reutrns null if it doesn't exist.

Returns:
the reting value of Confidence element