Package com.verisign.epp.codec.gen
Class EPPRecipient
java.lang.Object
com.verisign.epp.codec.gen.EPPRecipient
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Identifies the Recipient DataCollectionPolicy supported by the server:
- <other> other entities following unknown practices
- <ours> server operator and or servers operator agents
- <public> public forums
- <same> other entities following server practices
- <unrelated> unrelated third parties.
- Use methods
setOther,setPublic,setSame,setUnRelatedwith a boolean value of true to create the necessary child element nodes. UsesetOursto set aVectorof ours child element nodes with optional descriptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRecipient(boolean aOther, Vector<String> aOurs, boolean aPublic, boolean aSame, boolean aUnrelated) Allocates a newEPPRecipientwith differnt child elements based on the input parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd <ours> element with an optional description.clone()CloneEPPRecipient.voiddecodeEPPRecipientfrom a DOM element tree.encodeEPPRecipientinto a DOM element tree.booleanimplements a deepEPPRecipientcompare.Returns the XML namespace associated with theEPPCodecComponent.getOurs()Gets the ours recipient descriptions.booleanisOther()<other> element set?booleanisPublic()<public> element set?booleanisSame()<same> element set?boolean<unrelated> element set?voidsetOther(boolean aOther) Sets the <other> element.voidSets the <ours> elements that include a descriptionStringperourselement.voidsetPublic(boolean aPublic) Sets the <public> element to specify public forums.voidsetSame(boolean aSame) Sets the <same> element to specify other entities following server practices.voidsetUnrelated(boolean aUnrelated) Sets the <unrelated> element to specify Unrelated third parties.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPRecipient
public EPPRecipient()Default constructor. -
EPPRecipient
public EPPRecipient(boolean aOther, Vector<String> aOurs, boolean aPublic, boolean aSame, boolean aUnrelated) Allocates a newEPPRecipientwith differnt child elements based on the input parameters. The child element are created based on the following input parameter values:
- if aOther parameter is set to true then the other element
otheris created - if aOurs
VectorofStringthat describes the recipient. Anull Stringindicates that the recipient has no description. - if aPublic parameter is set to true then the public element
publicis created - if aSame parameter is set to true then the same element
sameis created - if aUnrelated parameter is set to true then the unrelated element
unrelatedis created
- Parameters:
aOther- DOCUMENT ME!aOurs- DOCUMENT ME!aPublic- DOCUMENT ME!aSame- DOCUMENT ME!aUnrelated- DOCUMENT ME!
- if aOther parameter is set to true then the other element
-
-
Method Details
-
isOther
public boolean isOther()<other> element set?- Returns:
trueif is set;falseotherwise.
-
setOther
public void setOther(boolean aOther) Sets the <other> element.- Parameters:
aOther-trueto include the <other> element;falseotherwise.
-
getOurs
Gets the ours recipient descriptions. Anulldescription indicates a ours recipient without a description.- Returns:
VectorofStringours descriptions if defined;nullotherwise.
-
setOurs
Sets the <ours> elements that include a descriptionStringperourselement. AnullStringindicates no description for the <ours> element.- Parameters:
aOurs-Vectorof nullableString<ours> descriptions
-
addOurs
Add <ours> element with an optional description. A non-nullaOursDesc represents a description, while anullvalue represents a <ours> element without a description.- Parameters:
aOursDesc- A nullable <ours> description
-
isPublic
public boolean isPublic()<public> element set?- Returns:
trueif is set;falseotherwise.
-
setPublic
public void setPublic(boolean aPublic) Sets the <public> element to specify public forums.- Parameters:
aPublic-trueto include the <public> element;falseotherwise.
-
isSame
public boolean isSame()<same> element set?- Returns:
trueif is set;falseotherwise.
-
setSame
public void setSame(boolean aSame) Sets the <same> element to specify other entities following server practices.- Parameters:
aSame-trueto include the <same> element;falseotherwise.
-
encode
encodeEPPRecipientinto a DOM element tree. The "recipient" element is created and the child nodes are appended as children.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document to create elements from- Returns:
- recipient root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPRecipientfrom a DOM element tree. TheaElementargument needs to be the <recipient> element- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root element tree.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPRecipientcompare. -
clone
CloneEPPRecipient.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRecipient - Throws:
CloneNotSupportedException- standard Object.clone exception
-
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.
-