EPP 0.4.9

com.neulevel.epp.xri
Class EppXriSocialData

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.xri.EppXriSocialData

public class EppXriSocialData
extends EppEntity

This EppXriSocialData class defines social information associated with XRI authority objects. It implements XRI socialDataType and chgSocialDataType defined in the XRI authority schema file.

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

Constructor Summary
EppXriSocialData()
          Creates an EppXriSocialData object
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriSocialData object.
 EppE164 getFax()
          Gets the fax number
 EppE164 getPager()
          Gets the pager number
 EppContactData getPostalInfo()
          Gets the postal information of the XRI authoruty
 java.lang.String getPrimaryEmail()
          Gets the primary email address
 EppE164 getPrimaryVoice()
          Gets the primary voice phone number
 java.lang.String getSecondaryEmail()
          Gets the secondary email address
 EppE164 getSecondaryVoice()
          Gets the secondary voice phone number
 boolean isEmailNullified()
          Returns true if email addresses are to be nullified via an EPP update command
 boolean isFaxNullified()
          Returns true if fax is to be nullified via an EPP update command
 boolean isPagerNullified()
          Returns true if pager is to be nullified via an EPP update command
 boolean isVoiceNullified()
          Returns true if voice numbers are to be nullified via an EPP update command
 void nullifyEmail()
          Nullifies the email addresses via an EPP update command
 void nullifyFax()
          Nullifies the fax number via an EPP update command
 void nullifyPager()
          Nullifies the pager number via an EPP update command
 void nullifyVoice()
          Nullifies the voice number via an EPP update command
 void setFax(EppE164 fax)
          Sets the fax number
 void setFax(java.lang.String fax)
          Sets the fax number
 void setFax(java.lang.String fax, java.lang.String ext)
          Sets the fax number and extenstion
 void setPager(EppE164 pager)
          Sets the pager number
 void setPager(java.lang.String pager)
          Sets the pager number
 void setPager(java.lang.String pager, java.lang.String ext)
          Sets the pager number and extenstion
 void setPostalInfo(EppContactData postalInfo)
          Sets up postal information of the XRI authority
 void setPrimaryEmail(java.lang.String email)
          Sets the primary email address
 void setPrimaryVoice(EppE164 voice)
          Sets the primary voice phone number
 void setPrimaryVoice(java.lang.String voice)
          Sets the primary voice phone number
 void setPrimaryVoice(java.lang.String voice, java.lang.String ext)
          Sets the primary voice phone number and extenstion
 void setSecondaryEmail(java.lang.String email)
          Sets the secondary email address
 void setSecondaryVoice(EppE164 voice)
          Sets the secondary voice phone number
 void setSecondaryVoice(java.lang.String voice)
          Sets the secondary voice phone number
 void setSecondaryVoice(java.lang.String voice, java.lang.String ext)
          Sets the secondary voice phone number and extenstion
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriSocialData 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

EppXriSocialData

public EppXriSocialData()
Creates an EppXriSocialData object

Method Detail

setPostalInfo

public void setPostalInfo(EppContactData postalInfo)
Sets up postal information of the XRI authority


getPostalInfo

public EppContactData getPostalInfo()
Gets the postal information of the XRI authoruty


isVoiceNullified

public boolean isVoiceNullified()
Returns true if voice numbers are to be nullified via an EPP update command


getPrimaryVoice

public EppE164 getPrimaryVoice()
Gets the primary voice phone number


setPrimaryVoice

public void setPrimaryVoice(java.lang.String voice)
Sets the primary voice phone number


setPrimaryVoice

public void setPrimaryVoice(java.lang.String voice,
                            java.lang.String ext)
Sets the primary voice phone number and extenstion


setPrimaryVoice

public void setPrimaryVoice(EppE164 voice)
Sets the primary voice phone number


getSecondaryVoice

public EppE164 getSecondaryVoice()
Gets the secondary voice phone number


setSecondaryVoice

public void setSecondaryVoice(java.lang.String voice)
Sets the secondary voice phone number


setSecondaryVoice

public void setSecondaryVoice(java.lang.String voice,
                              java.lang.String ext)
Sets the secondary voice phone number and extenstion


setSecondaryVoice

public void setSecondaryVoice(EppE164 voice)
Sets the secondary voice phone number


nullifyVoice

public void nullifyVoice()
Nullifies the voice number via an EPP update command


isFaxNullified

public boolean isFaxNullified()
Returns true if fax is to be nullified via an EPP update command


getFax

public EppE164 getFax()
Gets the fax number


setFax

public void setFax(java.lang.String fax)
Sets the fax number


setFax

public void setFax(java.lang.String fax,
                   java.lang.String ext)
Sets the fax number and extenstion


setFax

public void setFax(EppE164 fax)
Sets the fax number


nullifyFax

public void nullifyFax()
Nullifies the fax number via an EPP update command


isPagerNullified

public boolean isPagerNullified()
Returns true if pager is to be nullified via an EPP update command


getPager

public EppE164 getPager()
Gets the pager number


setPager

public void setPager(java.lang.String pager)
Sets the pager number


setPager

public void setPager(java.lang.String pager,
                     java.lang.String ext)
Sets the pager number and extenstion


setPager

public void setPager(EppE164 pager)
Sets the pager number


nullifyPager

public void nullifyPager()
Nullifies the pager number via an EPP update command


isEmailNullified

public boolean isEmailNullified()
Returns true if email addresses are to be nullified via an EPP update command


getPrimaryEmail

public java.lang.String getPrimaryEmail()
Gets the primary email address


setPrimaryEmail

public void setPrimaryEmail(java.lang.String email)
Sets the primary email address


getSecondaryEmail

public java.lang.String getSecondaryEmail()
Gets the secondary email address


setSecondaryEmail

public void setSecondaryEmail(java.lang.String email)
Sets the secondary email address


nullifyEmail

public void nullifyEmail()
Nullifies the email addresses via an EPP update command


toXML

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

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

fromXML

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

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