Package com.verisign.epp.codec.ttl.v1_0
Class EPPTtl
java.lang.Object
com.verisign.epp.codec.ttl.v1_0.EPPTtl
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPTtl is used to define TTL values for the DNS resource records
associated with domain and host objects.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPTtl()Default constructor.CreateEPPTtlinstance with the TTL resource record type and with anullTTL value.CreateEPPTtlinstance with the TTL resource record type and the TTL value.CreateEPPTtlinstance with a custom TTL resource record type and with anullTTL value.CreateEPPTtlinstance with a custom TTL resource record type and the TTL value.EPPTtl(RRecType aRRecType, String aCustom, Integer aMinValue, Integer aMaxValue, Integer aDefaultValue, Integer aValue) CreateEPPTtlinstance with all of the attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPTtlinstance.voidDecode theEPPTtlelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPTtlinstance.booleanimplements a deepEPPTtlcompare.Gets the custom resource record type attribute value.Gets the default TTL value.Gets the max TTL value.Gets the min TTL value.Returns the XML namespace associated with theEPPCodecComponent.Gets the resource record type.getValue()Gets the TTL value.booleanIs the custom resource record type attribute defined?booleanIs the default TTL value defined?booleanIs the max TTL value defined?booleanIs the min TTL value defined?booleanAre all the policy TTL values (minValue,maxValue,defaultValue) defined?booleanhasValue()Is the TTL value defined?voidSets the custom resource record type attribute value.voidsetDefaultValue(Integer aDefaultValue) Sets the TTL default value.voidsetMaxValue(Integer aMaxValue) Sets the TTL max value.voidsetMinValue(Integer aMinValue) Sets the TTL min value.voidsetPolicyValues(Integer aMinValue, Integer aMaxValue, Integer aDefaultValue) Sets the policy TTL values (minValue,maxValue,defaultValue).voidsetRRecType(RRecType aRRecType) Sets resource record type.voidSets the TTL value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.voidUnsets the policy TTL values (minValue,maxValue,defaultValue).
-
Field Details
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
-
Constructor Details
-
EPPTtl
public EPPTtl()Default constructor. By default the value isnull, which will unset the TTL setting. -
EPPTtl
CreateEPPTtlinstance with the TTL resource record type and with anullTTL value.- Parameters:
aRRecType- Required resource record type
-
EPPTtl
CreateEPPTtlinstance with a custom TTL resource record type and with anullTTL value.- Parameters:
aRRecType- Required resource record typeaCustom- Custom resource record type
-
EPPTtl
CreateEPPTtlinstance with the TTL resource record type and the TTL value.- Parameters:
aRRecType- Required resource record typeaValue- The TTL value. Set tonullto unset the explicit TTL value.
-
EPPTtl
CreateEPPTtlinstance with a custom TTL resource record type and the TTL value.- Parameters:
aRRecType- Required resource record typeaCustom- Custom resource record typeaValue- The TTL value. Set tonullto unset the explicit TTL value.
-
EPPTtl
public EPPTtl(RRecType aRRecType, String aCustom, Integer aMinValue, Integer aMaxValue, Integer aDefaultValue, Integer aValue) CreateEPPTtlinstance with all of the attributes.- Parameters:
aRRecType- Required resource record typeaCustom- Custom resource record type. Usenullif undefined.aMinValue- Min TTL value. Usenullif undefined.aMaxValue- Max TTL value. Usenullif undefined.aDefaultValue- Default TTL value. Usenullif undefined.aValue- The ttl value. Set tonullto unset the explicit TTL value.
-
-
Method Details
-
getRRecType
Gets the resource record type.- Returns:
- Resource record type if defined;
nullotherwise.
-
setRRecType
Sets resource record type.- Parameters:
aRRecType- Sets resource record type
-
hasCustom
public boolean hasCustom()Is the custom resource record type attribute defined?- Returns:
trueif the custom resource record type attribute is defined;falseotherwise.
-
getCustom
Gets the custom resource record type attribute value.- Returns:
- Custom resource record type attribute if defined;
nullotherwise.
-
setCustom
Sets the custom resource record type attribute value.- Parameters:
aCustom- Custom resource record type value. Unset withnull.
-
hasMinValue
public boolean hasMinValue()Is the min TTL value defined?- Returns:
trueif the min TTL value is defined;falseotherwise.
-
getMinValue
Gets the min TTL value.- Returns:
- Min TTL value if defined;
nullotherwise.
-
setMinValue
Sets the TTL min value.- Parameters:
aMinValue- Min TTL value. Unset withnull.
-
hasMaxValue
public boolean hasMaxValue()Is the max TTL value defined?- Returns:
trueif the max TTL value is defined;falseotherwise.
-
getMaxValue
Gets the max TTL value.- Returns:
- Max TTL value if defined;
nullotherwise.
-
setMaxValue
Sets the TTL max value.- Parameters:
aMaxValue- Max TTL value. Unset withnull.
-
hasDefaultValue
public boolean hasDefaultValue()Is the default TTL value defined?- Returns:
trueif the default TTL value is defined;falseotherwise.
-
getDefaultValue
Gets the default TTL value.- Returns:
- Default TTL value if defined;
nullotherwise.
-
setDefaultValue
Sets the TTL default value.- Parameters:
aDefaultValue- Default TTL value. Unset withnull.
-
hasPolicyValues
public boolean hasPolicyValues()Are all the policy TTL values (minValue,maxValue,defaultValue) defined?- Returns:
trueif all of the policy TTL values are defined;falseotherwise.
-
setPolicyValues
Sets the policy TTL values (minValue,maxValue,defaultValue).- Parameters:
aMinValue- Min TTL value. Usenullif undefined.aMaxValue- Max TTL value. Usenullif undefined.aDefaultValue- Default TTL value. Usenullif undefined.
-
unsetPolicyValues
public void unsetPolicyValues()Unsets the policy TTL values (minValue,maxValue,defaultValue). -
hasValue
public boolean hasValue()Is the TTL value defined?- Returns:
trueif the TTL value is defined;falseotherwise.
-
getValue
Gets the TTL value.- Returns:
- TTL value if defined;
nullotherwise.
-
setValue
Sets the TTL value.- Parameters:
aValue- TTL value. Unset withnull.
-
clone
CloneEPPTtlinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPTtl - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPTtlelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPTtlfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPTtlinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPTtlinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPTtlinstance.
-
equals
implements a deepEPPTtlcompare. -
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.
-