Class EPPLowBalancePollThreshold
- java.lang.Object
-
- com.verisign.epp.codec.lowbalancepoll.EPPLowBalancePollThreshold
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPLowBalancePollThreshold extends java.lang.Object implements EPPCodecComponent
The EPPLowBalancePollThreshold is the EPPCodecComponent that knows how to encode and decode Credit Threshold Type elements from/to XML and object instance.Title: EPP 1.0 Low Balance
Description: Low Balance Poll Mapping for the EPP SDK
Copyright: Copyright (c) 2004
Company: VeriSign
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPLowBalancePollThreshold()
Create a new instance of EPPLowBalancePollThresholdEPPLowBalancePollThreshold(java.lang.String aType, java.lang.String aCreditThresholdValue)
Create a new instance of EPPLowBalancePollThreshold with the given threshold type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPLowBalancePollThreshold
.void
decode(org.w3c.dom.Element aElement)
Populate the data of this instance with the data stored in the given Element of the DOM treeorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Append all data from this Low Balance data to the given DOM Documentboolean
equals(java.lang.Object aObject)
implements a deepEPPLowBalancePollThreshold
compare.java.lang.String
getCreditThresholdValue()
java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.String
getType()
void
setCreditThresholdValue(java.lang.String aCeditThresholdValue)
void
setType(java.lang.String aType)
-
-
-
Field Detail
-
FIXED
public static final java.lang.String FIXED
The constant value for FIXED- See Also:
- Constant Field Values
-
PERCENT
public static final java.lang.String PERCENT
The constant value for PERCENT- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLowBalancePollThreshold
public EPPLowBalancePollThreshold()
Create a new instance of EPPLowBalancePollThreshold
-
EPPLowBalancePollThreshold
public EPPLowBalancePollThreshold(java.lang.String aType, java.lang.String aCreditThresholdValue)
Create a new instance of EPPLowBalancePollThreshold with the given threshold type- Parameters:
aType
- the type value to use for this instance. Should use one of the static constants defined for this class as a value.aCreditThresholdValue
- Credit threshold value (fixed or percentage)
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Append all data from this Low Balance data to the given DOM Document- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- The DOM Document to append data to- Returns:
- DOM
Element
encoded - Throws:
EPPEncodeException
- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- The root element of the report fragment of XML- Throws:
EPPDecodeException
- Thrown if any errors occur during decoding.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLowBalancePollThreshold
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPLowBalancePollThreshold
instance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPLowBalancePollThreshold
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPLowBalancePollThreshold
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String aType)
-
getCreditThresholdValue
public java.lang.String getCreditThresholdValue()
-
setCreditThresholdValue
public void setCreditThresholdValue(java.lang.String aCeditThresholdValue)
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-