|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.fee.v07.EPPFeeValue
public class EPPFeeValue
EPPFeeValue
represents the fee value information returned by the
server.
Field Summary | |
---|---|
static java.lang.String |
APPLIED_DELAYED
Fee is applied later after allocation. |
static java.lang.String |
APPLIED_IMMEDIATE
Fee is applied immediately at the time of the operation. |
static java.lang.String |
DEFAULT_APPLIED
Default applied value, which is to apply the fee immediately. |
static java.lang.String |
DEFAULT_GRACE_PERIOD
The default grace period is 0 days, meaning that there is no grace period. |
static boolean |
DEFAULT_REDUNDABLE
Default value for the "refundable" attribute, which means that by default the operation is not refundable. |
static java.lang.String |
ELM_LOCALNAME
Constant for the phase local name |
static java.lang.String |
ELM_NAME
Constant for the phase qualified name (prefix and local name) |
static java.lang.String |
GRACE_PERIOD_NONE
Constant to reflect that there is no grace period. |
Constructor Summary | |
---|---|
EPPFeeValue()
Default constructor. |
|
EPPFeeValue(java.math.BigDecimal aFee)
Create EPPFeeValue instance with the required fee value. |
|
EPPFeeValue(java.math.BigDecimal aFee,
java.lang.String aDescription)
Create EPPFeeValue instance with the required fee value and
the optional description. |
|
EPPFeeValue(java.math.BigDecimal aFee,
java.lang.String aDescription,
boolean aRefundable,
java.lang.String aGracePeriod,
java.lang.String aApplied)
Create EPPFeeValue instance with all attributes. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPFeeValue instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPFeeValue element aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPFeeValue instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPFeeValue compare. |
java.lang.String |
getApplied()
Gets the applied value. |
java.lang.String |
getDescription()
Gets the description value. |
java.math.BigDecimal |
getFee()
Gets the fee value. |
java.lang.String |
getGracePeriod()
Gets the OPTIONAL grace-period value. |
boolean |
hasDescription()
Is the description defined? |
boolean |
hasGracePeriod()
Is the grace-period defined? |
boolean |
isRefundable()
Is the fee refundable? |
void |
setApplied(java.lang.String aApplied)
Sets the applied value. |
void |
setDescription(java.lang.String aDescription)
Sets the description value. |
void |
setFee(java.math.BigDecimal aFee)
Sets the fee value. |
void |
setGracePeriod(java.lang.String aGracePeriod)
Sets the OPTIONAL grace-period value. |
void |
setRefundable(boolean aRefundable)
Sets whether the fee is refundable. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public static java.lang.String APPLIED_IMMEDIATE
public static java.lang.String APPLIED_DELAYED
public static boolean DEFAULT_REDUNDABLE
public static java.lang.String DEFAULT_APPLIED
public static java.lang.String GRACE_PERIOD_NONE
public static java.lang.String DEFAULT_GRACE_PERIOD
Constructor Detail |
---|
public EPPFeeValue()
setFee(BigDecimal)
method.
public EPPFeeValue(java.math.BigDecimal aFee)
EPPFeeValue
instance with the required fee value.
aFee
- The fee valuepublic EPPFeeValue(java.math.BigDecimal aFee, java.lang.String aDescription)
EPPFeeValue
instance with the required fee value and
the optional description.
aFee
- The fee valueaDescription
- Human-readable descriptionpublic EPPFeeValue(java.math.BigDecimal aFee, java.lang.String aDescription, boolean aRefundable, java.lang.String aGracePeriod, java.lang.String aApplied)
EPPFeeValue
instance with all attributes.
aFee
- The fee valueaDescription
- Human-readable descriptionaRefundable
- Is the fee refundable?aGracePeriod
- Grace period when aRefundable
is
true
. Set to GRACE_PERIOD_NONE
if
aRefundable
is false
.aApplied
- When the are fees applied using either the
APPLIED_IMMEDIATE
constant or the
APPLIED_DELAYED
constant.Method Detail |
---|
public boolean hasDescription()
true
if the description is defined;
false
otherwise.public java.lang.String getDescription()
null
otherwise.public void setDescription(java.lang.String aDescription)
aDescription
- Description value.public boolean isRefundable()
true
if the fee is refundable; false
otherwise.public void setRefundable(boolean aRefundable)
aRefundable
- Set to true
if the fee is refundable;
false
otherwise.public boolean hasGracePeriod()
true
if the grace-period is defined;
false
otherwise.public java.lang.String getGracePeriod()
null
otherwise.public void setGracePeriod(java.lang.String aGracePeriod)
aGracePeriod
- Grace-period value. Use the constant
GRACE_PERIOD_NONE
to specify no grace period.public java.lang.String getApplied()
APPLIED
constant values.public void setApplied(java.lang.String aApplied)
aApplied
- Applied value that should be one of the APPLIED
constant values.public java.math.BigDecimal getFee()
public void setFee(java.math.BigDecimal aFee)
aFee
- Fee valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPFeeValue
instance.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPFeeValue
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPFeeValue
element aElement DOM Element tree.
decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPFeeValue
from.
EPPDecodeException
- Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPFeeValue
instance.
encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element
factory.
EPPFeeValue
instance.
EPPEncodeException
- - Unable to encode EPPFeeValue
instance.public boolean equals(java.lang.Object aObject)
EPPFeeValue
compare.
equals
in class java.lang.Object
aObject
- EPPFeeValue
instance to compare with
true
if equal; false
otherwisepublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |