public class EPPContactAddChange extends java.lang.Object implements EPPCodecComponent
EPPContactUpdateCmd
. In EPPContactUpdateCmd
, an
instance of EPPContactAddRemove
is used to specify the
attributes to add, an instance of EPPContactAddRemove
is used
to specify the attributes to remove and an instance of
EPPContactAddRemove
is used o specify the attributes to
change. getPostalInfo
, addPostalInfo
and
setPostalInfo
to get, add and set the elements.
getVoice
and setVoice
to get and set
the elements.
getFax
and setFax
to get
and set the elements.
getEmail
and setEmail
to get and set the
elements.
EPPContactUpdateCmd
,
EPPContactAddress
,
Serialized FormConstructor and Description |
---|
EPPContactAddChange()
Default constructor for
EPPContactAddChange . |
EPPContactAddChange(EPPContactPostalDefinition aPostalInfo,
java.lang.String aVoice,
EPPAuthInfo aAuthInfo)
Constructor for
EPPContactAddChange . |
EPPContactAddChange(EPPContactPostalDefinition aPostalInfo,
java.lang.String aVoice,
java.lang.String aFax,
java.lang.String aEmail,
EPPAuthInfo aAuthInfo)
Constructor for
EPPContactAddChange . |
EPPContactAddChange(java.util.Vector newStatuses)
Constructor for
EPPContactAddChange . |
EPPContactAddChange(java.util.Vector aPostalInfo,
java.lang.String aVoice,
java.lang.String aFax,
java.lang.String aEmail,
EPPAuthInfo aAuthInfo)
Constructor for
EPPContactAddChange . |
Modifier and Type | Method and Description |
---|---|
void |
addPostalInfo(EPPContactPostalDefinition newPostalInfo)
Adds contact postalInfo.
|
java.lang.Object |
clone()
Clone
EPPContactAddChange . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPContactAddChange attributes from the
aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPContactAddChange instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPContactAddChange compare. |
EPPAuthInfo |
getAuthInfo()
Get autorization information for contact change.
|
EPPContactDisclose |
getDisclose()
Get disclose information.
|
java.lang.String |
getEmail()
Get email.
|
java.lang.String |
getFax()
Get fax number.
|
java.lang.String |
getFaxExt()
Get fax number extension.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.Vector |
getPostalInfo()
Get postalInfo elements of contact change.
|
java.util.Vector |
getStatuses()
Get a vector of contact statuses.
|
java.lang.String |
getVoice()
Get voice number.
|
java.lang.String |
getVoiceExt()
Get voice number extension.
|
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information for contact change.
|
void |
setDisclose(EPPContactDisclose newDisclose)
Set disclose information.
|
void |
setEmail(java.lang.String newEmail)
Set email.
|
void |
setFax(java.lang.String newFax)
Set fax number.
|
void |
setFaxExt(java.lang.String newFaxExt)
Set fax number extension.
|
void |
setPostalInfo(java.util.Vector newPostalContacts)
Set contact postalInfo.
|
void |
setStatuses(java.util.Vector newStatuses)
Set a vector of statuses for contact add.
|
void |
setVoice(java.lang.String newVoice)
Set voice number.
|
void |
setVoiceExt(java.lang.String newVoiceExt)
Set contact voice extension.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public EPPContactAddChange()
EPPContactAddChange
.public EPPContactAddChange(java.util.Vector newStatuses)
EPPContactAddChange
.newStatuses
- Vector of statuses for contact add.public EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, java.lang.String aVoice, EPPAuthInfo aAuthInfo)
EPPContactAddChange
.aPostalInfo
- EPPContactPostalDefinition, defining a series objects
for contact changes.aVoice
- Voice numberaAuthInfo
- Authorization information for contact change.public EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, java.lang.String aVoice, java.lang.String aFax, java.lang.String aEmail, EPPAuthInfo aAuthInfo)
EPPContactAddChange
.aPostalInfo
- EPPContactPostalDefinition, defining a series objects
for contact changes.aVoice
- Voice numberaFax
- Fax numberaEmail
- EmailaAuthInfo
- Authorization information for contact change.public EPPContactAddChange(java.util.Vector aPostalInfo, java.lang.String aVoice, java.lang.String aFax, java.lang.String aEmail, EPPAuthInfo aAuthInfo)
EPPContactAddChange
.aPostalInfo
- Vector, defining a series objects for contact
changes.aVoice
- Voice numberaFax
- Fax numberaEmail
- EmailaAuthInfo
- Authorization information for contact change.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPContactAddChange
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPContactAddChange
instance.EPPEncodeException
- Unable to encode
EPPContactAddChange
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactAddChange
attributes from the
aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode
EPPContactAddChange
from.EPPDecodeException
- Unable to decode aElement
.public boolean equals(java.lang.Object aObject)
EPPContactAddChange
compare.equals
in class java.lang.Object
aObject
- EPPContactAddChange
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactAddChange
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPContactAddChange
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.util.Vector getPostalInfo()
public void setPostalInfo(java.util.Vector newPostalContacts)
newPostalContacts
- java.util.Vectorpublic void addPostalInfo(EPPContactPostalDefinition newPostalInfo)
newPostalInfo
- com.verisign.epp.codec.contact.EPPContactPostalDefinitionpublic EPPAuthInfo getAuthInfo()
public EPPContactDisclose getDisclose()
null
otherwise;public void setDisclose(EPPContactDisclose newDisclose)
newDisclose
- com.verisign.epp.codec.gen.EPPContactDisclosepublic java.lang.String getEmail()
public java.lang.String getFax()
public java.lang.String getFaxExt()
null
otherwise.public java.util.Vector getStatuses()
public java.lang.String getVoice()
public java.lang.String getVoiceExt()
null
otherwise.public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo
- com.verisign.epp.codec.gen.EPPAuthInfopublic void setEmail(java.lang.String newEmail)
newEmail
- Stringpublic void setFax(java.lang.String newFax)
newFax
- Stringpublic void setFaxExt(java.lang.String newFaxExt)
newFaxExt
- Fax number extensionpublic void setStatuses(java.util.Vector newStatuses)
newStatuses
- java.util.Vectorpublic void setVoice(java.lang.String newVoice)
newVoice
- Stringpublic void setVoiceExt(java.lang.String newVoiceExt)
newVoiceExt
- voice extensionpublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.