Package com.verisign.epp.codec.contact
Class EPPContactAddChange
java.lang.Object
com.verisign.epp.codec.contact.EPPContactAddChange
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents attributes to add, remove or change with a
The <contact:add> and <contact:rem> elements SHALL contain the following child elements:
A <contact:chg> element SHALL contain the following OPTIONAL child elements:
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. The <contact:add> and <contact:rem> elements SHALL contain the following child elements:
- One or more <contact:status> elements that contain status values to be associated with or removed from the object. When specifying a value to be removed, only the attribute value is significant; element text is not required to match a value for removal.
A <contact:chg> element SHALL contain the following OPTIONAL child elements:
- A <contact:postalInfo> element that contains the postal contacts.
Use
getPostalInfo,addPostalInfoandsetPostalInfoto get, add and set the elements. - An <contact:voice> element that contains the contact's voice
telephone number. Use
getVoiceandsetVoiceto get and set the elements. - An <contact:fax> element that contains the contact's facsimile
telephone number. Use
getFaxandsetFaxto get and set the elements. - A <contact:email> element that contains the contact's e-mail
address. Use
getEmailandsetEmailto get and set the elements.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPContactAddChange.EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, String aVoice, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange.EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, String aVoice, String aFax, String aEmail, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange.EPPContactAddChange(Vector newStatuses) Constructor forEPPContactAddChange.EPPContactAddChange(Vector aPostalInfo, String aVoice, String aFax, String aEmail, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostalInfo(EPPContactPostalDefinition aPostalInfo) Adds contact postalInfo.clone()CloneEPPContactAddChange.voidDecode theEPPContactAddChangeattributes from theaElementDOM Element tree.Encode a DOM Element tree from the attributes of theEPPContactAddChangeinstance.booleanimplements a deepEPPContactAddChangecompare.Get authorization information for contact change.Get disclose information.getEmail()Gets email.getFax()Get fax number.Gets the fax extension.Returns the XML namespace associated with theEPPCodecComponent.Gets the postalInfo elements of contact change.Get a list of contact statuses.getVoice()Get voice number.Get voice number extension.booleanReturnstrueif auth info exists.booleanReturnstrueif disclose exists.booleanhasEmail()Returnstrueif email exists.booleanhasFax()Returnstrueif fax exists.booleanReturnstrueif fax extension exists.booleanReturnstrueif statuses exist.booleanhasVoice()Returnstrueif voice exists.booleanReturnstrueif voice extension exists.voidsetAuthInfo(EPPAuthInfo aAuthInfo) Set authorization information for contact change.voidsetDisclose(EPPContactDisclose aDisclose) Sets the disclose information.voidSets the email.voidSets the fax number.voidSets the fax extension.voidsetPostalInfo(Vector aPostalContacts) Sets list of contact postal information.voidsetStatuses(Vector aStatuses) Sets the list of contact statuses.voidSets the voice number.voidsetVoiceExt(String aVoiceExt) Sets the contact voice extension.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPContactAddChange
public EPPContactAddChange()Default constructor forEPPContactAddChange. -
EPPContactAddChange
Constructor forEPPContactAddChange.- Parameters:
newStatuses- Vector of statuses for contact add.
-
EPPContactAddChange
public EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, String aVoice, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange.- Parameters:
aPostalInfo- EPPContactPostalDefinition, defining a series objects for contact changes.aVoice- Voice numberaAuthInfo- Authorization information for contact change.
-
EPPContactAddChange
public EPPContactAddChange(EPPContactPostalDefinition aPostalInfo, String aVoice, String aFax, String aEmail, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange.- Parameters:
aPostalInfo- EPPContactPostalDefinition, defining a series objects for contact changes.aVoice- Voice numberaFax- Fax numberaEmail- EmailaAuthInfo- Authorization information for contact change.
-
EPPContactAddChange
public EPPContactAddChange(Vector aPostalInfo, String aVoice, String aFax, String aEmail, EPPAuthInfo aAuthInfo) Constructor forEPPContactAddChange.- Parameters:
aPostalInfo- Vector, defining a series objects for contact changes.aVoice- Voice numberaFax- Fax numberaEmail- EmailaAuthInfo- Authorization information for contact change.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPContactAddChangeinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPContactAddChangeinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactAddChangeinstance.
-
decode
Decode theEPPContactAddChangeattributes from theaElementDOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPContactAddChangefrom.- Throws:
EPPDecodeException- Unable to decodeaElement.
-
equals
implements a deepEPPContactAddChangecompare. -
clone
CloneEPPContactAddChange.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPContactAddChange - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getPostalInfo
Gets the postalInfo elements of contact change.- Returns:
VectorofEPPContactPostalDefinitioninstances
-
setPostalInfo
Sets list of contact postal information.- Parameters:
aPostalContacts- java.util.Vector ofEPPContactPostalDefinitioninstances. Ifnull, the list will be reset.
-
addPostalInfo
Adds contact postalInfo.- Parameters:
aPostalInfo- Postal information to add
-
hasAuthInfo
public boolean hasAuthInfo()Returnstrueif auth info exists.- Returns:
trueif auth info exists; otherwisefalse.
-
getAuthInfo
Get authorization information for contact change.- Returns:
- The authorization information is set;
nullotherwise
-
setAuthInfo
Set authorization information for contact change.- Parameters:
aAuthInfo- Authorization information to set. The
-
hasDisclose
public boolean hasDisclose()Returnstrueif disclose exists.- Returns:
trueif disclose exists; otherwisefalse.
-
getDisclose
Get disclose information.- Returns:
- Disclose information if defined;
nullotherwise;
-
setDisclose
Sets the disclose information.- Parameters:
aDisclose- Disclose information to set.
-
hasEmail
public boolean hasEmail()Returnstrueif email exists.- Returns:
trueif email exists; otherwisefalse.
-
getEmail
Gets email.- Returns:
- Email if set;
nullotherwise
-
setEmail
Sets the email.- Parameters:
aEmail- Email to set
-
hasFax
public boolean hasFax()Returnstrueif fax exists.- Returns:
trueif fax exists; otherwisefalse.
-
getFax
Get fax number.- Returns:
- String fax number
-
setFax
Sets the fax number.- Parameters:
aFax- Fax number to set
-
hasFaxExt
public boolean hasFaxExt()Returnstrueif fax extension exists.- Returns:
trueif fax extension exists; otherwisefalse.
-
getFaxExt
Gets the fax extension.- Returns:
- fax extension if defined;
nullotherwise.
-
setFaxExt
Sets the fax extension.- Parameters:
aFaxExt- Fax extension
-
hasStatuses
public boolean hasStatuses()Returnstrueif statuses exist.- Returns:
trueif statuses exist; otherwisefalse.
-
getStatuses
Get a list of contact statuses.- Returns:
- Contact statuses if defined;
nullotherwise
-
setStatuses
Sets the list of contact statuses.- Parameters:
aStatuses- List of contact statuses
-
hasVoice
public boolean hasVoice()Returnstrueif voice exists.- Returns:
trueif voice exists; otherwisefalse.
-
getVoice
Get voice number.- Returns:
- String fax number
-
setVoice
Sets the voice number.- Parameters:
aVoice- The voice number to set
-
hasVoiceExt
public boolean hasVoiceExt()Returnstrueif voice extension exists.- Returns:
trueif voice extension exists; otherwisefalse.
-
getVoiceExt
Get voice number extension.- Returns:
- Voice number extension if defined;
nullotherwise.
-
setVoiceExt
Sets the contact voice extension.- Parameters:
aVoiceExt- voice extension
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-