EPP 0.2.5

com.neulevel.epp.core
Class EppServiceMenu

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.EppServiceMenu

public class EppServiceMenu
extends EppEntity

This EppServiceMenu class implements EPP svcMenuType entity.

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
protected  java.util.Vector lang
          The language list of the EPP Service Menu
protected  java.util.Vector svc
          The standard object list of the EPP Service Menu
protected  java.util.Vector unspec
          The unspec object list of the EPP Service Menu.
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 name to the list of all objects supported by the EPP server
 void addUnspec(java.lang.String name, java.lang.String uri, java.lang.String schema)
          Adds an unspec object to the list of all unspec 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 name space and schema location of all objects supported by the EPP server
 java.util.Vector getUnspec()
          Returns a Vector containing the name space and schema location of all unspec objects supported by the EPP server.
 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

svc

protected java.util.Vector svc
The standard object list of the EPP Service Menu

unspec

protected java.util.Vector unspec
The unspec object list of the EPP Service Menu. Each entry contains three tokens: name, url, and schema file name. For example: "obj1ext 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 name space and schema location of all objects supported by the EPP server

addService

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

getUnspec

public java.util.Vector getUnspec()
Returns a Vector containing the name space and schema location of all unspec objects supported by the EPP server. Each entry in the vector is a string containing three tokens: three tokens: name, url, and schema file name. For example: "obj1ext http://custom/obj1ext-1.0 obj1ext-1.0.xsd"

addUnspec

public void addUnspec(java.lang.String name,
                      java.lang.String uri,
                      java.lang.String schema)
Adds an unspec object to the list of all unspec objects supported by the EPP server
Parameters:
name - the name of the object
uri - the uri of the object
schema - the XML schema defining the object

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppServiceMenu object into an XML element
Overrides:
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()
Overrides:
toString in class EppEntity

EPP 0.2.5

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