Class EPPRegistryBatchSchedule
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryBatchSchedule
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryBatchSchedule defines a batch schedule that uses the
<registry:schedule> element, with the required "frequency" attribute
that defines the frequency of execution. The "frequency" attribute has the
possible values of "daily", "weekly", and "monthy". The time zone is defined
using the XML schema "time" type conventions of UTC and offsets from UTC, or
using the OPTIONAL "tz" attribute that defines the named time zone. For
example, the named Eastern time zone can be specified using the setting
"tz=EST5EDT".- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for thedayOfWeekattribute.static enumPossible values for thefrequencyattribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML attribute name for thedayOfMonthattribute.static final StringXML attribute name for thedayOfWeekattribute.static final StringXML attribute name for thefrequencyattribute.static final StringXML attribute name for thetzattribute.static final StringXML local name forEPPRegistryBatchSchedule.static final StringXML root tag forEPPRegistryBatchSchedule. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryBatchSchedule(EPPRegistryBatchSchedule.Frequency aFrequency, String aTime) Construct an instance ofEPPRegistryBatchSchedulewith the required frequency and time.EPPRegistryBatchSchedule(String aTime, EPPRegistryBatchSchedule.DayOfWeek aDayOfWeek, String aTimeZone) Construct an instance ofEPPRegistryBatchSchedulethat is used for a day of week schedule.EPPRegistryBatchSchedule(String aTime, Integer aDayOfMonth, String aTimeZone) Construct an instance ofEPPRegistryBatchSchedulethat is used for a day of month schedule.EPPRegistryBatchSchedule(String aTime, String aTimeZone) Construct an instance ofEPPRegistryBatchSchedulethat is used for a daily schedule. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryBatchSchedule.voidDecode theEPPRegistryBatchScheduleattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryDomaininstance.booleanimplements a deepEPPRegistryBatchSchedulecompare.Gets the optional day of month.Gets the optional day of week.Gets the schedule execution frequency.Returns the XML namespace associated with theEPPCodecComponent.getTime()Gets the schedule execution time using the XML schema "time" type format.Gets the optional schedule execution named time zone, such as "EST5EDT".booleanIs the day of month defined?booleanIs the day of week defined?booleanIs the schedule execution named time zone defined?voidsetDayOfMonth(Integer aDayOfMonth) Sets the optional day of month.voidsetDayOfWeek(EPPRegistryBatchSchedule.DayOfWeek aDayOfWeek) Sets the optional day of week.voidsetFrequency(EPPRegistryBatchSchedule.Frequency aFrequency) Sets the schedule execution frequency.voidSets the schedule execution time using the XML schema "time" type format.voidsetTimeZone(String aTimeZone) Sets the optional schedule execution named time zone, such as "EST5EDT".toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryBatchSchedule.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryBatchSchedule.- See Also:
-
ATTR_FREQUENCY
XML attribute name for thefrequencyattribute.- See Also:
-
ATTR_TZ
XML attribute name for thetzattribute.- See Also:
-
ATTR_DAY_OF_WEEK
XML attribute name for thedayOfWeekattribute.- See Also:
-
ATTR_DAY_OF_MONTH
XML attribute name for thedayOfMonthattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryBatchSchedule
public EPPRegistryBatchSchedule()Default constructor. Must callsetFrequency(Frequency)andsetTime(String)before calling theencode(org.w3c.dom.Document)method. -
EPPRegistryBatchSchedule
Construct an instance ofEPPRegistryBatchSchedulewith the required frequency and time.- Parameters:
aFrequency- The frequency of the scheduleaTime- The time of the schedule following the XML schema "time" type format
-
EPPRegistryBatchSchedule
Construct an instance ofEPPRegistryBatchSchedulethat is used for a daily schedule.- Parameters:
aTime- The time of the schedule following the XML schema "time" type formataTimeZone- The named time zone of the time, represented by theaTimeparameter. An example of a named time zone is "EST5EDT". Set tonullif undefined.
-
EPPRegistryBatchSchedule
public EPPRegistryBatchSchedule(String aTime, EPPRegistryBatchSchedule.DayOfWeek aDayOfWeek, String aTimeZone) Construct an instance ofEPPRegistryBatchSchedulethat is used for a day of week schedule.- Parameters:
aTime- The time of the schedule following the XML schema "time" type formataDayOfWeek- A day of the weekaTimeZone- Optional named time zone of the time, represented by theaTimeparameter. An example of a named time zone is "EST5EDT". Set tonullif undefined.
-
EPPRegistryBatchSchedule
Construct an instance ofEPPRegistryBatchSchedulethat is used for a day of month schedule.- Parameters:
aTime- The time of the schedule following the XML schema "time" type formataDayOfMonth- The day of month in the range of 1 - 31. Execution will not occur in the current month if theaDayOfMonthvalue is out-of-range for the current month (e.g, 29 - 31).aTimeZone- Optional named time zone of the time, represented by theaTimeparameter. An example of a named time zone is "EST5EDT". Set tonullif undefined.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDomaininstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDomaininstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryBatchScheduleinstance.
-
decode
Decode theEPPRegistryBatchScheduleattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryBatchSchedulefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryBatchSchedule.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryBatchSchedule - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryBatchSchedulecompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getFrequency
Gets the schedule execution frequency.- Returns:
- The schedule execution frequency if defined;
nullotherwise.
-
setFrequency
Sets the schedule execution frequency.- Parameters:
aFrequency- The schedule execution frequency
-
getTime
Gets the schedule execution time using the XML schema "time" type format. Examples include "14:00:00" for a time without a time zone offset, "07:00:00-05:00" for a time with a 5 hour offset from UTC or EST time zone, and "17:00:00Z" for 5 PM UTC.- Returns:
- The schedule execution time if defined;
nullotherwise.
-
setTime
Sets the schedule execution time using the XML schema "time" type format. Examples include "14:00:00" for a time without a time zone offset, "07:00:00-05:00" for a time with a 5 hour offset from UTC or EST time zone, and "17:00:00Z" for 5 PM UTC.- Parameters:
aTime- The schedule execution time
-
hasTimeZone
public boolean hasTimeZone()Is the schedule execution named time zone defined?- Returns:
trueif the schedule execution named time zone is defined;falseotherwise.
-
getTimeZone
Gets the optional schedule execution named time zone, such as "EST5EDT".- Returns:
- The schedule execution named time zone if defined;
nullotherwise.
-
setTimeZone
Sets the optional schedule execution named time zone, such as "EST5EDT".- Parameters:
aTimeZone- The schedule execution named time zone
-
hasDayOfWeek
public boolean hasDayOfWeek()Is the day of week defined?- Returns:
trueif the day of week defined;falseotherwise.
-
getDayOfWeek
Gets the optional day of week.- Returns:
- The day of week if defined;
nullotherwise.
-
setDayOfWeek
Sets the optional day of week.- Parameters:
aDayOfWeek- The day of week. Set tonullif undefined.
-
hasDayOfMonth
public boolean hasDayOfMonth()Is the day of month defined?- Returns:
trueif the day of month defined;falseotherwise.
-
getDayOfMonth
Gets the optional day of month.- Returns:
- The day of month if defined;
nullotherwise.
-
setDayOfMonth
Sets the optional day of month.- Parameters:
aDayOfMonth- The day of month. Set tonullif undefined.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-