Package com.verisign.epp.codec.gen
Class EPPRecipient
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPRecipient
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRecipient extends java.lang.Object implements EPPCodecComponent
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:
EPPStatement, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPRecipient()Default constructor.EPPRecipient(boolean aOther, java.util.Vector<java.lang.String> aOurs, boolean aPublic, boolean aSame, boolean aUnrelated)Allocates a newEPPRecipientwith differnt child elements based on the input parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOurs(java.lang.String aOursDesc)Add <ours> element with an optional description.java.lang.Objectclone()CloneEPPRecipient.voiddecode(org.w3c.dom.Element aElement)decodeEPPRecipientfrom a DOM element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encodeEPPRecipientinto a DOM element tree.booleanequals(java.lang.Object aObject)implements a deepEPPRecipientcompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.Vector<java.lang.String>getOurs()Gets the ours recipient descriptions.booleanisOther()<other> element set?booleanisPublic()<public> element set?booleanisSame()<same> element set?booleanisUnrelated()<unrelated> element set?voidsetOther(boolean aOther)Sets the <other> element.voidsetOurs(java.util.Vector<java.lang.String> aOurs)Sets 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.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPRecipient
public EPPRecipient()
Default constructor.
-
EPPRecipient
public EPPRecipient(boolean aOther, java.util.Vector<java.lang.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 Detail
-
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
public java.util.Vector<java.lang.String> getOurs()
Gets the ours recipient descriptions. Anulldescription indicates a ours recipient without a description.- Returns:
VectorofStringours descriptions if defined;nullotherwise.
-
setOurs
public void setOurs(java.util.Vector<java.lang.String> aOurs)
Sets the <ours> elements that include a descriptionStringperourselement. AnullStringindicates no description for the <ours> element.- Parameters:
aOurs-Vectorof nullableString<ours> descriptions
-
addOurs
public void addOurs(java.lang.String aOursDesc)
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.
-
isUnrelated
public boolean isUnrelated()
<unrelated> element set?- Returns:
trueif is set;falseotherwise.
-
setUnrelated
public void setUnrelated(boolean aUnrelated)
Sets the <unrelated> element to specify Unrelated third parties.- Parameters:
aUnrelated-trueto include the <unrelated> element;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencodeEPPRecipientinto 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecodeEPPRecipientfrom 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPRecipientcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRecipientinstance to compare with- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRecipient.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRecipient - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-