Package com.verisign.epp.codec.syncext
Class EPPSyncExtUpdate
java.lang.Object
com.verisign.epp.codec.syncext.EPPSyncExtUpdate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an EPPSyncExtUpdate instanceEPPSyncExtUpdate(int aMonth, int aDay) Create a EPPSyncExtUpdate intance with the given month and day -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPSyncExtUpdate.voidDecode the EPPSyncExtUpdate component.Sets all this instance's data in the given XML document.booleanimplements a deepEPPSyncExtUpdatecompare.intgetDay()Gets the day of the monthintgetMonth()Returns the month.Returns the XML namespace associated with theEPPCodecComponent.voidsetDay(int aDay) Sets the day of the monthvoidsetMonth(int aMonth) Sets the month
-
Field Details
-
ELM_NAME
Constant for the update tag name- See Also:
-
ELM_MONTH_DAY
Constant for the expiration month/day tag name- See Also:
-
-
Constructor Details
-
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.Calendarmonth constantaDay- the day
-
-
Method Details
-
clone
CloneEPPSyncExtUpdate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPSyncExtUpdate - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
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:
encodein 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
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:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Element to decode from- Throws:
EPPDecodeException- On encoding error
-
equals
implements a deepEPPSyncExtUpdatecompare. -
getMonth
public int getMonth()Returns the month.- Returns:
- the month using a
java.util.Calendarmonth constant
-
setMonth
public void setMonth(int aMonth) Sets the month- Parameters:
aMonth- the month using ajava.util.Calendarmonth 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
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-