com.cysols.iodef.rid.element
Class RID

java.lang.Object
  extended by com.cysols.iodef.IElement
      extended by com.cysols.iodef.rid.element.RID

public class RID
extends IElement

This class represents to RID element.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addIncidentSource(IncidentSource source)
          Adds the specified IncidentSource element
 void addNPPath(NPPath path)
          Adds the specified NPPath element
 Document createDomDocument()
          Creates a new instance of a DOM object from itself.
 String getDtype()
          Returns the dtype value.
 IncidentSource[] getIncidentSources()
          Returns the array of IncidentSource element.
 IPPacket getIPPacket()
          Returns the IPPacket element.
 String getMeaning()
          Returns the meaning value.
 NPPath[] getNPPaths()
          Returns the array of NPPath element.
 RIDPolicy getRIDPolicy()
          Returns the RIDPolicy element.
 TraceStatus getTraceStatus()
          Returns the TraceStatus element.
 void setDtype(String type)
          Sets the specified dtype value.
 void setIPPacket(IPPacket packet)
          Sets the specified IPPacket elment.
 void setMeaning(String meaning)
          Sets the specified meaning value.
 void setRIDPolicy(RIDPolicy policy)
          Sets the specified RIDPolicy elment.
 void setSchemaLocation(String sfile)
          Sets schema file.
 void setTraceStatus(TraceStatus status)
          Sets the specified TraceStatus elment.
 
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

setIPPacket

public void setIPPacket(IPPacket packet)
Sets the specified IPPacket elment.

Parameters:
packet - - the IPPacket element.

getIPPacket

public IPPacket getIPPacket()
Returns the IPPacket element. return null if it doesn't exist.

Returns:
the IPPacket elment.

addNPPath

public void addNPPath(NPPath path)
Adds the specified NPPath element

Parameters:
path - NPPath element

getNPPaths

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

Returns:
the array of NPPath element.

setTraceStatus

public void setTraceStatus(TraceStatus status)
Sets the specified TraceStatus elment.

Parameters:
status - the TraceStatus element.

getTraceStatus

public TraceStatus getTraceStatus()
Returns the TraceStatus element. return null if it doesn't exist.

Returns:
the TraceStatus elment.

addIncidentSource

public void addIncidentSource(IncidentSource source)
Adds the specified IncidentSource element

Parameters:
source - IncidentSource element

getIncidentSources

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

Returns:
the array of IncidentSource element.

setRIDPolicy

public void setRIDPolicy(RIDPolicy policy)
Sets the specified RIDPolicy elment.

Parameters:
policy - - the RIDPolicy element.

getRIDPolicy

public RIDPolicy getRIDPolicy()
Returns the RIDPolicy element. return null if it doesn't exist.

Returns:
the RIDPolicy elment.

setDtype

public void setDtype(String type)
Sets the specified dtype value.

Parameters:
type - dtype value

getDtype

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

Returns:
the dtype value.

setMeaning

public void setMeaning(String meaning)
Sets the specified meaning value.

Parameters:
meaning - meaning value

getMeaning

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

Returns:
the meaning value.

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 rid document.