Package com.verisign.epp.codec.contact
Class EPPContactDisclose
java.lang.Object
com.verisign.epp.codec.contact.EPPContactDisclose
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a contact disclose definition.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.Flag should not be get or set via aString.static final StringValue of the INT in contact disclose type mappingstatic final StringValue of the LOC in contact disclose type mappingstatic final StringConstant for disclose local namestatic final StringConstant for the disclose full name -
Constructor Summary
ConstructorsConstructorDescriptionEPPContactDisclosedefault constructor.EPPContactDisclose(boolean aFlag, boolean aNameInt, boolean aNameLoc, boolean aOrgInt, boolean aOrgLoc, boolean aAddrInt, boolean aAddrLoc, boolean aVoice, boolean aFax, boolean aEmail) EPPContactDiscloseconstructor that takes all of the disclose settings. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactDisclose.voidDecode theEPPContactDiscloseattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPContactDiscloseinstance.booleanimplements a deepEPPContactDisclosecompare.Deprecated.UseisAddrInt()andisAddrLoc()instead.getEmail()Deprecated.UseisEmail()instead.getFax()Deprecated.UseisFax()instead.getFlag()Deprecated.getNames()Deprecated.UseisNameInt()andisNameLoc()instead.Returns the XML namespace associated with theEPPCodecComponent.getOrgs()Deprecated.UseisOrgInt()andisOrgLoc()instead.Gets the root tag name for the disclose.getVoice()Deprecated.UseisVoice()instead.booleanIs the internationalized addr element set?booleanIs the localized addr element set?booleanisAll()Are all of the disclose elements set?booleanisAllInt()Are all of the internationalized disclose elements set?booleanisAllLoc()Are all of the localized disclose elements set?booleanAre all of the other (voice, fax, email) disclose elements set?booleanisEmail()Is the email element set?booleanisFax()Is the fax element set?booleanisFlag()Is the disclose flag set totrue?booleanIs the internationalized name element set?booleanIs the localized name element set?booleanisOrgInt()Is the internationalized org element set?booleanisOrgLoc()Is the localized org element set?booleanisVoice()Is the voice element set?voidsetAddresses(Vector aAddresses) Deprecated.UsesetAddrInt(boolean)andsetAddrLoc(boolean)instead.voidsetAddrInt(boolean aAddrInt) Set to include the internationalized addr element.voidsetAddrLoc(boolean aAddrLoc) Set to include the localized addr element.voidsetAll()Set all of the disclose elements totrue.voidSet all of the internationalized disclose elements totrue.voidSet all of the localized disclose elements totrue.voidSet all of the other (voice, fax, email) disclose elements totrue.voidsetEmail(boolean aEmail) Set to include the email element.voidDeprecated.UsesetEmail(boolean)instead.voidsetFax(boolean aFax) Set to include the fax element.voidDeprecated.UsesetFax(boolean)instead.voidsetFlag(boolean aFlag) Sets the contact disclose flag.voidDeprecated.UsesetFlag(boolean)instead.voidsetNameInt(boolean aNameInt) Set to include the internationalized name element.voidsetNameLoc(boolean aNameLoc) Set to include the localized name element.voidDeprecated.UsesetNameInt(boolean)andsetNameLoc(boolean)instead.voidsetOrgInt(boolean aOrgInt) Set to include the internationalized org element.voidsetOrgLoc(boolean aOrgInt) Set to include the localized org element.voidDeprecated.UsesetOrgInt(boolean)andsetOrgLoc(boolean)instead.voidsetRootName(String aRootName) Set root tag name for contact postal definition.voidsetVoice(boolean aVoice) Set to include the voice element.voidDeprecated.UsesetVoice(boolean)instead.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ATTR_FLAG_FALSE
Deprecated.Flag should not be get or set via aString.False flag string value.- See Also:
-
ATTR_FLAG_TRUE
Deprecated.Flag should not be get or set via aString.True flag string value.- See Also:
-
ATTR_TYPE_INT
Value of the INT in contact disclose type mapping- See Also:
-
ATTR_TYPE_LOC
Value of the LOC in contact disclose type mapping- See Also:
-
ELM_LOCALNAME
Constant for disclose local name- See Also:
-
ELM_NAME
Constant for the disclose full name- See Also:
-
-
Constructor Details
-
EPPContactDisclose
public EPPContactDisclose()EPPContactDisclosedefault constructor. Must call required setter methods before invokingencode(Document). -
EPPContactDisclose
public EPPContactDisclose(boolean aFlag, boolean aNameInt, boolean aNameLoc, boolean aOrgInt, boolean aOrgLoc, boolean aAddrInt, boolean aAddrLoc, boolean aVoice, boolean aFax, boolean aEmail) EPPContactDiscloseconstructor that takes all of the disclose settings. All of the parameters except for theaFlagparameter will include the element if thebooleanvalue istrueand won't if thebooleanvalue isfalse.- Parameters:
aFlag- Disclosure flagaNameInt- Include the internalized name element in the disclose?aNameLoc- Include the localized name element in the disclose?aOrgInt- Include the internationalized org element in the disclose?aOrgLoc- Include the localized org element in the disclose?aAddrInt- Include the internationalized address element in the disclose?aAddrLoc- Include the localized address element in the disclose?aVoice- Include the voice element in the disclose?aFax- Include the fax element in the disclose?aEmail- Include the email element in the disclose?
-
-
Method Details
-
clone
CloneEPPContactDisclose.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPContactDisclose - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPContactDiscloseattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPContactDisclosefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPContactDiscloseinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- On encoding error
-
equals
implements a deepEPPContactDisclosecompare. -
getAddresses
Deprecated.UseisAddrInt()andisAddrLoc()instead.Get contact disclose addresses.- Returns:
VectorofEPPContactDiscloseAddressinstances if at least one address is set;nullotherwise.
-
getEmail
Deprecated.UseisEmail()instead.Gets the contact disclose email.- Returns:
- Empty
Stringif set;nullotherwise.
-
getFax
Deprecated.UseisFax()instead.Gets the contact disclose fax.- Returns:
- Empty
Stringif set;nullotherwise.
-
getFlag
Deprecated.Gets the disclose flag.- Returns:
ATTR_FLAG_TRUEiftrue;ATTR_FLAG_FALSEotherwise.
-
getNames
Deprecated.UseisNameInt()andisNameLoc()instead.Get contact disclose names.- Returns:
VectorofEPPContactDiscloseNameinstances if at least one name is set;nullotherwise.
-
getOrgs
Deprecated.UseisOrgInt()andisOrgLoc()instead.Get contact disclose orgs.- Returns:
VectorofEPPContactDiscloseOrginstances if at least one org is set;nullotherwise.
-
getRootName
Gets the root tag name for the disclose.- Returns:
- Root tag name
-
getVoice
Deprecated.UseisVoice()instead.Gets the contact disclose voice.- Returns:
- Empty
Stringif set;nullotherwise.
-
isAddrInt
public boolean isAddrInt()Is the internationalized addr element set?- Returns:
trueif the internationalized addr element is set;falseotherwise.
-
isAddrLoc
public boolean isAddrLoc()Is the localized addr element set?- Returns:
trueif the localized addr element is set;falseotherwise.
-
isAll
public boolean isAll()Are all of the disclose elements set?- Returns:
trueif all of the disclose elements are set;falseotherwise.
-
isAllInt
public boolean isAllInt()Are all of the internationalized disclose elements set?- Returns:
trueif all of the internationalized disclose elements are set;falseotherwise.
-
isAllLoc
public boolean isAllLoc()Are all of the localized disclose elements set?- Returns:
trueif all of the localized disclose elements are set;falseotherwise.
-
isAllOther
public boolean isAllOther()Are all of the other (voice, fax, email) disclose elements set?- Returns:
trueif all of the other (voice, fax, email) disclose elements are set;falseotherwise.
-
isEmail
public boolean isEmail()Is the email element set?- Returns:
trueif the email element is set;falseotherwise.
-
isFax
public boolean isFax()Is the fax element set?- Returns:
trueif the fax element is set;falseotherwise.
-
isFlag
public boolean isFlag()Is the disclose flag set totrue?- Returns:
trueif the disclose flag is set totrue;falseotherwise.
-
isNameInt
public boolean isNameInt()Is the internationalized name element set?- Returns:
trueif the internationalized name element is set;falseotherwise.
-
isNameLoc
public boolean isNameLoc()Is the localized name element set?- Returns:
trueif the localized name element is set;falseotherwise.
-
isOrgInt
public boolean isOrgInt()Is the internationalized org element set?- Returns:
trueif the internationalized org element is set;falseotherwise.
-
isOrgLoc
public boolean isOrgLoc()Is the localized org element set?- Returns:
trueif the localized org element is set;falseotherwise.
-
isVoice
public boolean isVoice()Is the voice element set?- Returns:
trueif the voice element is set;falseotherwise.
-
setAddresses
Deprecated.UsesetAddrInt(boolean)andsetAddrLoc(boolean)instead.Sets the contact disclose addresses.- Parameters:
aAddresses-VectorofEPPContactDiscloseAddressinstances to set.
-
setAddrInt
public void setAddrInt(boolean aAddrInt) Set to include the internationalized addr element. Iftruethe element will be included in the disclose.- Parameters:
aAddrInt-trueto include the internationalized addr;falseotherwise.
-
setAddrLoc
public void setAddrLoc(boolean aAddrLoc) Set to include the localized addr element. Iftruethe element will be included in the disclose.- Parameters:
aAddrLoc-trueto include the localized addr;falseotherwise.
-
setAll
public void setAll()Set all of the disclose elements totrue. -
setAllInt
public void setAllInt()Set all of the internationalized disclose elements totrue. -
setAllLoc
public void setAllLoc()Set all of the localized disclose elements totrue. -
setAllOther
public void setAllOther()Set all of the other (voice, fax, email) disclose elements totrue. -
setEmail
public void setEmail(boolean aEmail) Set to include the email element. Iftruethe element will be included in the disclose.- Parameters:
aEmail-trueto include the email;falseotherwise.
-
setEmail
Deprecated.UsesetEmail(boolean)instead.Sets the contact disclose email.- Parameters:
aEmail-nullto set email element tofalse; otherwise set email element totrue.
-
setFax
public void setFax(boolean aFax) Set to include the fax element. Iftruethe element will be included in the disclose.- Parameters:
aFax-trueto include the fax;falseotherwise.
-
setFax
Deprecated.UsesetFax(boolean)instead.Sets the contact disclose fax.- Parameters:
aFax-nullto set fax element tofalse; otherwise set fax element totrue.
-
setFlag
public void setFlag(boolean aFlag) Sets the contact disclose flag.- Parameters:
aFlag-trueto allow disclosure as an exception to the stated data-collection policy;falseto not allow disclosure of the specified elements as an exception to the stated data-collection policy.
-
setFlag
Deprecated.UsesetFlag(boolean)instead.Sets the contact disclose flag.- Parameters:
aFlag-ATTR_FLAG_TRUEiftrueandATTR_FLAG_FALSEiffalse.
-
setNameInt
public void setNameInt(boolean aNameInt) Set to include the internationalized name element. Iftruethe element will be included in the disclose.- Parameters:
aNameInt-trueto include the internationalized name;falseotherwise.
-
setNameLoc
public void setNameLoc(boolean aNameLoc) Set to include the localized name element. Iftruethe element will be included in the disclose.- Parameters:
aNameLoc-trueto include the localized name;falseotherwise.
-
setNames
Deprecated.UsesetNameInt(boolean)andsetNameLoc(boolean)instead.Sets the contact disclose names.- Parameters:
aNames-VectorofEPPContactDiscloseNameinstances to set.
-
setOrgInt
public void setOrgInt(boolean aOrgInt) Set to include the internationalized org element. Iftruethe element will be included in the disclose.- Parameters:
aOrgInt-trueto include the internationalized org;falseotherwise.
-
setOrgLoc
public void setOrgLoc(boolean aOrgInt) Set to include the localized org element. Iftruethe element will be included in the disclose.- Parameters:
aOrgInt-trueto include the localized org;falseotherwise.
-
setOrgs
Deprecated.UsesetOrgInt(boolean)andsetOrgLoc(boolean)instead.Sets the contact disclose orgs.- Parameters:
aOrgs-VectorofEPPContactDiscloseOrginstances to set.
-
setRootName
Set root tag name for contact postal definition.- Parameters:
aRootName- String
-
setVoice
public void setVoice(boolean aVoice) Set to include the voice element. Iftruethe element will be included in the disclose.- Parameters:
aVoice-trueto include the voice;falseotherwise.
-
setVoice
Deprecated.UsesetVoice(boolean)instead.Sets the contact disclose voice.- Parameters:
aVoice-nullto set voice element tofalse; otherwise set voice element totrue.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
String.