com.cysols.iodef.element
Class Node

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

public class Node
extends IElement

This class is value object which represents Node element.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addAddress(Address address)
          Sets the specified Address elment.
 void addAddressValue(String addr)
          Adds the specified address value.
 void addCounterValue(String counter)
          Adds the specified counter value.
 void addNodeRoleValue(String role, String noderolecat)
          Adds the specified node role value.
 Address[] getAddress()
          Returns the array of address element.
 String[] getAddressValues()
          Returns the array of address value.
 String[] getCounterValues()
          Returns the array of counter value.
 String getDateTimeValue()
          Returns the date time value.
 String getLocationValue()
          Returns the location value.
 String getNameValue()
          Returns the name value from name element.
 String[] getNodeRoleValues()
          Returns the array of node role value.
 void setDateTimeValue(String value)
          Sets the date time value.
 void setLocationValue(String value)
          Sets the location value.
 void setNameValue(String value)
          Creates the name element (not Name element) and sets the specified value to it.
 
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

setNameValue

public void setNameValue(String value)
Creates the name element (not Name element) and sets the specified value to it.

Parameters:
value - the name value

getNameValue

public String getNameValue()
Returns the name value from name element.

Returns:
name value.

addAddressValue

public void addAddressValue(String addr)
Adds the specified address value.

Parameters:
addr - the address value

getAddressValues

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

Returns:
the array of address value.

setDateTimeValue

public void setDateTimeValue(String value)
Sets the date time value.

Parameters:
value - the date time value

getDateTimeValue

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

Returns:
date time value

setLocationValue

public void setLocationValue(String value)
Sets the location value.

Parameters:
value - the location value

getLocationValue

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

Returns:
location value

addNodeRoleValue

public void addNodeRoleValue(String role,
                             String noderolecat)
Adds the specified node role value.

Parameters:
role - the node role value

getNodeRoleValues

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

Returns:
the array of node role value.

addCounterValue

public void addCounterValue(String counter)
Adds the specified counter value.

Parameters:
counter - the counter value

getCounterValues

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

Returns:
the array of counter value.

addAddress

public void addAddress(Address address)
Sets the specified Address elment.

Parameters:
address - the address id element.

getAddress

public Address[] getAddress()
Returns the array of address element. return null if it doesn't exist.

Returns:
the array of address elment.