Package com.verisign.epp.codec.ttl.v1_0
Class EPPTtlInfo
- java.lang.Object
-
- com.verisign.epp.codec.ttl.v1_0.EPPTtlInfo
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPTtlInfo extends java.lang.Object implements EPPCodecComponent
TTL Info Extension that enables a client to indicate whether to include the TTL policy attributes in the response.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPTtlInfo.static java.lang.StringELM_NAMEXML root tag forEPPTtlInfo.
-
Constructor Summary
Constructors Constructor Description EPPTtlInfo()Default constructor forEPPTtlInfo.EPPTtlInfo(boolean aPolicy)Constructor forEPPTtlInfothat takes a single TTL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()clone anEPPCodecComponent.voiddecode(org.w3c.dom.Element aElement)Decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode of aEPPTtlInfoinstance that includes checks of the TTLs.booleanequals(java.lang.Object aObject)Compare an instance ofEPPTtlInfowith this instance.protected java.lang.StringgetLocalName()Returns the local name "info" for the info extension.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanisPolicy()Is the policy attributes requested in the response?voidsetPolicy(boolean aPolicy)Sets whether the policy attributes are requested in the response.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPTtlInfo.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPTtlInfo.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocalName
protected java.lang.String getLocalName()
Returns the local name "info" for the info extension.- Returns:
- Local name "info" for the info extension.
-
isPolicy
public boolean isPolicy()
Is the policy attributes requested in the response?- Returns:
trueto include the policy attributes in the response;falseotherwise.
-
setPolicy
public void setPolicy(boolean aPolicy)
Sets whether the policy attributes are requested in the response.- Parameters:
aPolicy-trueto include the policy attributes in the response;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode of aEPPTtlInfoinstance that includes checks of the TTLs.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPTtlExtension
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPTtlExtension - 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.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPTtlInfowith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-