com.cysols.iodef.element
Class Service

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

public class Service
extends IElement

This class is value object which represents Service.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 Application getApplication()
          Returns the application element.
 String getIp_protocol()
          Returns the ip protocol value.
 String getIp_version()
          Returns the ip version value.
 String getPortlistValue()
          Returns the portlist value from portlist element.
 String getPortValue()
          Returns the port value from port element.
 void setApplication(Application app)
          Sets the specified application elment.
 void setIp_protocol(String value)
          Sets the specified ip protocol value.
 void setIp_version(String value)
          Sets the specified ip version value.
 void setPortlistValue(String value)
          Creates the portlist element and sets the specified value to it.
 void setPortValue(String value)
          Creates the port 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

setPortValue

public void setPortValue(String value)
Creates the port element and sets the specified value to it.

Parameters:
value - - port value

getPortValue

public String getPortValue()
Returns the port value from port element.

Returns:
port value.

setPortlistValue

public void setPortlistValue(String value)
Creates the portlist element and sets the specified value to it.

Parameters:
value - - portlist value

getPortlistValue

public String getPortlistValue()
Returns the portlist value from portlist element.

Returns:
portlist value.

setApplication

public void setApplication(Application app)
Sets the specified application elment.

Parameters:
app - - the application element.

getApplication

public Application getApplication()
Returns the application element. return null if it doesn't exist.

Returns:
the application elment.

setIp_version

public void setIp_version(String value)
Sets the specified ip version value.

Parameters:
value - - ip version value

getIp_version

public String getIp_version()
Returns the ip version value. reutrns null if it doesn't exist.

Returns:
the ip version value.

setIp_protocol

public void setIp_protocol(String value)
Sets the specified ip protocol value.

Parameters:
value - - ip protocol value

getIp_protocol

public String getIp_protocol()
Returns the ip protocol value. reutrns null if it doesn't exist.

Returns:
the ip protocol value.