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.StringELM_MONTH_DAYConstant for the expiration month/day tag namestatic java.lang.StringELM_NAMEConstant 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.Objectclone()CloneEPPSyncExtUpdate.voiddecode(org.w3c.dom.Element aElement)Decode the EPPSyncExtUpdate component.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML document.booleanequals(java.lang.Object aObject)implements a deepEPPSyncExtUpdatecompare.intgetDay()Gets the day of the monthintgetMonth()Returns the month.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetDay(int aDay)Sets the day of the monthvoidsetMonth(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.Calendarmonth constantaDay- the day
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPSyncExtUpdate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 EPPEncodeExceptionSets 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPSyncExtUpdatecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPSyncExtUpdateinstance to compare with- Returns:
- true if equal false otherwise
-
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
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-