com.cysols.iodef.element
Class IODEFDocument

java.lang.Object
  extended by com.cysols.iodef.IElement
      extended by com.cysols.iodef.element.IODEFDocument
Direct Known Subclasses:
NSIODEFDocument

public class IODEFDocument
extends IElement

This class is value object which represents IODEF-Document document.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addIncident(Incident incident)
          Adds the specified incident element
 Document createDomDocument()
          Creates a new instance of a DOM object from itself.
 Incident[] getIncidents()
          Returns the array of Incident value.
 void setAttribute(String namespece, String name, String value)
          Sets the attribute with the specified namespece and name
 void setSchemaLocation(String sfile)
          Sets schema file.
 
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

addIncident

public void addIncident(Incident incident)
Adds the specified incident element

Parameters:
incident - the incident element

getIncidents

public Incident[] getIncidents()
Returns the array of Incident value. reutrns null if they doesn't exist.

Returns:
the array of incident element

setSchemaLocation

public void setSchemaLocation(String sfile)
Sets schema file.

Parameters:
sfile - schema file

createDomDocument

public Document createDomDocument()
Creates a new instance of a DOM object from itself.

Returns:
a dom object transformed from iodef document.

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