Package com.verisign.epp.codec.whois
Class EPPWhoisInf
- java.lang.Object
-
- com.verisign.epp.codec.whois.EPPWhoisInf
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPWhoisInf extends java.lang.Object implements EPPCodecComponent
Extension to the domain info command to specify whether or not the whois info response data defined inEPPWhoisInfDatais desired. There is a single flag attribute that specifies the preference. A flag attribute value offalsehas the same result of not including theEPPWhoisInfoextension.- See Also:
EPPWhoisInfData, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEConstant for the whois info extension tag
-
Constructor Summary
Constructors Constructor Description EPPWhoisInf()Create an EPPWhoisInf instanceEPPWhoisInf(boolean aFlag)Create a EPPWhoisInf intance with the flag valueEPPWhoisInf(java.lang.Boolean aFlag)Create a EPPWhoisInf intance with the flag value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPWhoisInf.voiddecode(org.w3c.dom.Element aElement)Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPWhoisInfcompare.java.lang.BooleangetFlag()Returns the flag valuejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetFlag(java.lang.Boolean aFlag)Sets the flag Code
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the whois info extension tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPWhoisInf
public EPPWhoisInf()
Create an EPPWhoisInf instance
-
EPPWhoisInf
public EPPWhoisInf(boolean aFlag)
Create a EPPWhoisInf intance with the flag value- Parameters:
aFlag-trueto get theEPPWhoisInfDataextension in the response;falseotherwise
-
EPPWhoisInf
public EPPWhoisInf(java.lang.Boolean aFlag)
Create a EPPWhoisInf intance with the flag value- Parameters:
aFlag-trueto get theEPPWhoisInfDataextension in the response;falseotherwise
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPWhoisInf.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPWhoisInf - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPIdnLangExtCrete component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Element to decode from- Throws:
EPPDecodeException- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPWhoisInfcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPWhoisInfinstance to compare with- Returns:
- true if equal false otherwise
-
getFlag
public java.lang.Boolean getFlag()
Returns the flag value- Returns:
- the flag value if set;
nullotherwise
-
setFlag
public void setFlag(java.lang.Boolean aFlag)
Sets the flag Code- Parameters:
aFlag- The flag value
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-