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 inEPPWhoisInfData
is desired. There is a single flag attribute that specifies the preference. A flag attribute value offalse
has the same result of not including theEPPWhoisInfo
extension.- See Also:
EPPWhoisInfData
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_NAME
Constant 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.Object
clone()
CloneEPPWhoisInf
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPWhoisInf
compare.java.lang.Boolean
getFlag()
Returns the flag valuejava.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setFlag(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
-true
to get theEPPWhoisInfData
extension in the response;false
otherwise
-
EPPWhoisInf
public EPPWhoisInf(java.lang.Boolean aFlag)
Create a EPPWhoisInf intance with the flag value- Parameters:
aFlag
-true
to get theEPPWhoisInfData
extension in the response;false
otherwise
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPWhoisInf
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in 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 EPPDecodeException
Decode the EPPIdnLangExtCrete component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Element to decode from- Throws:
EPPDecodeException
- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPWhoisInf
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPWhoisInf
instance 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;
null
otherwise
-
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:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-