EPP 0.4.9

com.neulevel.epp.core
Class EppServiceMenu

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.EppServiceMenu

public class EppServiceMenu
extends EppEntity

This EppServiceMenu class implements EPP svcMenuType entity.

Version:
$Revision: 1.2 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
protected  java.util.Vector extURI
          The svcExtension object URI list of the EPP Service Menu (EPP-1.0).
protected  java.util.Vector lang
          The language list of the EPP Service Menu
protected  java.util.Vector objURI
          The standard object URI list of the EPP Service Menu (EPP-1.0).
protected  java.util.Vector version
          The version list of the EPP Service Menu
 
Constructor Summary
EppServiceMenu()
          Creates an EppServiceMenu object
 
Method Summary
 void addLanguage(java.lang.String language)
          Adds a language to the list of languages supported by the EPP server
 void addService(java.lang.String service)
          Adds an object URI to the list of all standard objects supported by the EPP server
 void addServiceExtension(java.lang.String uri)
          Adds an extension object to the list of all extURI objects supported by the EPP server
 void addUnspec(java.lang.String name, java.lang.String uri, java.lang.String schema)
          Adds an extension object to the list of all extURI objects supported by the EPP server
 void addVersion(java.lang.String version)
          Adds a version number to the list of versions supported by the EPP server
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppServiceMenu object.
 java.util.Vector getLanguage()
          Returns a Vector containing all languages supported by the Epp server
 java.util.Vector getService()
          Returns a Vector containing the URIs for all standard objects supported by the EPP server
 java.util.Vector getServiceExtension()
          Returns a Vector containing the URIs of all extension objects supported by the EPP server
 java.util.Vector getUnspec()
          Returns a Vector containing the URIs of all extension objects supported by the EPP server - alias to getServiceExtention()
 java.util.Vector getVersion()
          Returns a Vector containing all version numbers supported by the EPP server
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppServiceMenu 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
 

Field Detail

version

protected java.util.Vector version
The version list of the EPP Service Menu


lang

protected java.util.Vector lang
The language list of the EPP Service Menu


objURI

protected java.util.Vector objURI
The standard object URI list of the EPP Service Menu (EPP-1.0). For example: "urn:ietf:params:xml:ns:obj1"


extURI

protected java.util.Vector extURI
The svcExtension object URI list of the EPP Service Menu (EPP-1.0). For example: "http://custom/obj1ext-1.0 obj1ext-1.0.xsd"

Constructor Detail

EppServiceMenu

public EppServiceMenu()
Creates an EppServiceMenu object

Method Detail

getVersion

public java.util.Vector getVersion()
Returns a Vector containing all version numbers supported by the EPP server


addVersion

public void addVersion(java.lang.String version)
Adds a version number to the list of versions supported by the EPP server


getLanguage

public java.util.Vector getLanguage()
Returns a Vector containing all languages supported by the Epp server


addLanguage

public void addLanguage(java.lang.String language)
Adds a language to the list of languages supported by the EPP server


getService

public java.util.Vector getService()
Returns a Vector containing the URIs for all standard objects supported by the EPP server


addService

public void addService(java.lang.String service)
Adds an object URI to the list of all standard objects supported by the EPP server


getUnspec

public java.util.Vector getUnspec()
Returns a Vector containing the URIs of all extension objects supported by the EPP server - alias to getServiceExtention()


getServiceExtension

public java.util.Vector getServiceExtension()
Returns a Vector containing the URIs of all extension objects supported by the EPP server


addServiceExtension

public void addServiceExtension(java.lang.String uri)
Adds an extension object to the list of all extURI objects supported by the EPP server


addUnspec

public void addUnspec(java.lang.String name,
                      java.lang.String uri,
                      java.lang.String schema)
Adds an extension object to the list of all extURI objects supported by the EPP server

Parameters:
name - the name of the object (not used)
uri - the uri of the object
schema - the XML schema defining the object (not used)

Note: This method is retained for backward compatiblity


toXML

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

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

fromXML

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

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

toString

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

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.