Package com.verisign.epp.codec.syncext
Class EPPSyncExtUpdate
- java.lang.Object
-
- com.verisign.epp.codec.syncext.EPPSyncExtUpdate
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPSyncExtUpdate extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a sync update.Title: EPP 1.0 RGP
Description: SYNC Extension to the EPP SDK
Copyright: Copyright (c) 2004
Company: VeriSign
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_MONTH_DAY
Constant for the expiration month/day tag namestatic java.lang.String
ELM_NAME
Constant for the update tag name
-
Constructor Summary
Constructors Constructor Description EPPSyncExtUpdate()
Create an EPPSyncExtUpdate instanceEPPSyncExtUpdate(int aMonth, int aDay)
Create a EPPSyncExtUpdate intance with the given month and day
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPSyncExtUpdate
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPSyncExtUpdate component.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document.boolean
equals(java.lang.Object aObject)
implements a deepEPPSyncExtUpdate
compare.int
getDay()
Gets the day of the monthint
getMonth()
Returns the month.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setDay(int aDay)
Sets the day of the monthvoid
setMonth(int aMonth)
Sets the month
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the update tag name- See Also:
- Constant Field Values
-
ELM_MONTH_DAY
public static final java.lang.String ELM_MONTH_DAY
Constant for the expiration month/day tag name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPSyncExtUpdate
public EPPSyncExtUpdate()
Create an EPPSyncExtUpdate instance
-
EPPSyncExtUpdate
public EPPSyncExtUpdate(int aMonth, int aDay)
Create a EPPSyncExtUpdate intance with the given month and day- Parameters:
aMonth
- the month using ajava.util.Calendar
month constantaDay
- the day
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPSyncExtUpdate
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPSyncExtUpdate
- 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. Only a basic precondition check is done on the range of month (Calendar.JANUARY - Calendar.DECEMBER) and day values (1 - 31).- 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 EPPSyncExtUpdate component. It's assumed that date has already been validated by the XML parsing, so the month and day are decoded with no additional validation.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Element to decode from- Throws:
EPPDecodeException
- On encoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPSyncExtUpdate
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPSyncExtUpdate
instance to compare with- Returns:
- true if equal false otherwise
-
getMonth
public int getMonth()
Returns the month.- Returns:
- the month using a
java.util.Calendar
month constant
-
setMonth
public void setMonth(int aMonth)
Sets the month- Parameters:
aMonth
- the month using ajava.util.Calendar
month constant
-
getDay
public int getDay()
Gets the day of the month- Returns:
- the day of the month
-
setDay
public void setDay(int aDay)
Sets the day of the month- Parameters:
aDay
- the day of the month
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-