EPP 0.2.6

com.neulevel.epp.core
Class EppSvcsubParam

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.EppSvcsubParam

public class EppSvcsubParam
extends EppEntity

This EppSvcsubParam class implements EPP Svcsub Param entity. Currently, only EPP Svcsub objects have Svcsub params defined:

Version:
$Revision: 1.1.1.1 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppSvcsubParam(java.lang.String name)
          Creates an EppSvcsubParam object with the name of a parameter
EppSvcsubParam(java.lang.String name, java.lang.String value)
          Creates an EppSvcsubParam object with the name of a parameter and a value string
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppSvcsubParam object.
 java.lang.String getName()
          Gets the name of the parameter
static java.util.Vector getParamValue(java.util.Vector param, java.lang.String name)
          Gets a sub-list of parameter values, given a list of parameter values and a name string
 java.lang.String getValue()
          Gets the value of the parameter
 void setName(java.lang.String name)
          Sets the name of the parameter
 void setValue(java.lang.String value)
          Sets the value of the parameter
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppSvcsubParam object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppSvcsubParam

public EppSvcsubParam(java.lang.String name)
Creates an EppSvcsubParam object with the name of a parameter


EppSvcsubParam

public EppSvcsubParam(java.lang.String name,
                      java.lang.String value)
Creates an EppSvcsubParam object with the name of a parameter and a value string

Method Detail

getName

public java.lang.String getName()
Gets the name of the parameter


setName

public void setName(java.lang.String name)
Sets the name of the parameter


getValue

public java.lang.String getValue()
Gets the value of the parameter


setValue

public void setValue(java.lang.String value)
Sets the value of the parameter


getParamValue

public static java.util.Vector getParamValue(java.util.Vector param,
                                             java.lang.String name)
Gets a sub-list of parameter values, given a list of parameter values and a name string

Parameters:
name - the name of parameters to be extracted from the list
Returns:
a list of parameter values, or null if not found

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppSvcsubParam object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppSvcsubParam object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppSvcsubParam object. The caller of this method must make sure that the root node is of the EPP Svcsub Param type.

Parameters:
root - root node for an EppSvcsubParam object in XML format
Returns:
an EppSvcsubParam object, or null if the node is invalid

toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.2.6

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.