EPP 0.2.4

com.neulevel.epp.core
Class EppE164

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.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 $ $Date: 2001/11/05 20:20:36 $
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
Overrides:
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()
Overrides:
toString in class EppEntity

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.