EPP 0.2.6

com.neulevel.epp.core
Class EppE164

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

public class EppE164
extends EppEntity

This EppE164 class implements EPP e164Type, which is the ITU E.164 format for telephone numbers, plus extension.

Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppE164(java.lang.String number)
          Creates an EppE164 object without an extension
EppE164(java.lang.String number, java.lang.String extension)
          Creates an EppE164 object with an extension
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppE164 object.
 java.lang.String getExtension()
          Gets the extension of the phone number, if any
 java.lang.String getNumber()
          Gets the phone number
 void setExtension(java.lang.String extension)
          Sets the extension of the phone number
 void setNumber(java.lang.String number)
          Sets the phone number
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppE164 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

EppE164

public EppE164(java.lang.String number)
Creates an EppE164 object without an extension


EppE164

public EppE164(java.lang.String number,
               java.lang.String extension)
Creates an EppE164 object with an extension

Method Detail

getNumber

public java.lang.String getNumber()
Gets the phone number


setNumber

public void setNumber(java.lang.String number)
Sets the phone number


getExtension

public java.lang.String getExtension()
Gets the extension of the phone number, if any


setExtension

public void setExtension(java.lang.String extension)
Sets the extension of the phone number


toXML

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

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

fromXML

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

Parameters:
root - root node for an EppE164 object in XML format
Returns:
an EppE164 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.