Class EPPRegistryBatchJob
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryBatchJob
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryBatchJob contains the information for an individual batch
job.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPRegistryBatchJob.EPPRegistryBatchJob(String aName, EPPRegistryBatchSchedule aSchedule) EPPRegistryBatchJobconstructor that the required name and an individual schedule.EPPRegistryBatchJob(String aName, EPPRegistryBatchSchedule aSchedule, String aDescription) EPPRegistryBatchJobconstructor that the required name, an individual schedule, along with an optional description.EPPRegistryBatchJob(String aName, String aDescription) EPPRegistryBatchJobconstructor that the name and the optional description.EPPRegistryBatchJob(String aName, List<EPPRegistryBatchSchedule> aSchedules, String aDescription) EPPRegistryBatchJobconstructor that the required name, a list of schedules, along with an optional description. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchedule(EPPRegistryBatchSchedule aSchedule) Adds a schedule to the list of batch job schedules.clone()CloneEPPRegistryBatchJob.voidDecode theEPPRegistryBatchJobattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryBatchJobinstance.booleanimplements a deepEPPRegistryBatchJobcompare.Gets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".getName()Gets the name of the batch job, like "autoRenew" or "pendingDelete".Returns the XML namespace associated with theEPPCodecComponent.Gets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.booleanIs the description defined?booleanhasName()Is the name defined?booleanIs the schedules defined?voidsetDescription(String aDescription) Sets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".voidSets the name of the batch job, like "autoRenew" or "pendingDelete".voidsetSchedules(List<EPPRegistryBatchSchedule> aSchedules) Sets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryBatchJob.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryBatchJob.- See Also:
-
-
Constructor Details
-
EPPRegistryBatchJob
public EPPRegistryBatchJob()Default constructor forEPPRegistryBatchJob. -
EPPRegistryBatchJob
EPPRegistryBatchJobconstructor that the name and the optional description. At least one schedule must be set. individual schedule.- Parameters:
aName- Name of the batch job, like "autoRenew" or "pendingDelete".aDescription- Description of the batch job
-
EPPRegistryBatchJob
EPPRegistryBatchJobconstructor that the required name and an individual schedule.- Parameters:
aName- Name of the batch job, like "autoRenew" or "pendingDelete".aSchedule- An individual batch schedule using XML schema "time" type format
-
EPPRegistryBatchJob
EPPRegistryBatchJobconstructor that the required name, an individual schedule, along with an optional description.- Parameters:
aName- Name of the batch job, like "autoRenew" or "pendingDelete".aSchedule- An individual batch schedule using the XML schema "time" type formataDescription- Description of the batch job
-
EPPRegistryBatchJob
public EPPRegistryBatchJob(String aName, List<EPPRegistryBatchSchedule> aSchedules, String aDescription) EPPRegistryBatchJobconstructor that the required name, a list of schedules, along with an optional description.- Parameters:
aName- Name of the batch job, like "autoRenew" or "pendingDelete".aSchedules- A list of schedules with each schedule using the XML schema "time" type formataDescription- Description of the batch job
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryBatchJobinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryBatchJobinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryBatchJobinstance.
-
decode
Decode theEPPRegistryBatchJobattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryBatchJobfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryBatchJob.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryBatchJob - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryBatchJobcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the name of the batch job, like "autoRenew" or "pendingDelete".- Returns:
- Name of the batch job if defined;
nullotherwise.
-
setName
Sets the name of the batch job, like "autoRenew" or "pendingDelete".- Parameters:
aName- Name of the batch job
-
hasDescription
public boolean hasDescription()Is the description defined?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".- Returns:
- batch job description if defined;
nullotherwise.
-
setDescription
Sets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".- Parameters:
aDescription- the description to set
-
hasSchedules
public boolean hasSchedules()Is the schedules defined?- Returns:
trueif the schedules is defined;falseotherwise.
-
getSchedules
Gets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.- Returns:
ListofEPPRegistryBatchScheduleinstances if defined;nullotherwise.
-
setSchedules
Sets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.- Parameters:
aSchedules-ListofEPPRegistryBatchScheduleinstances
-
addSchedule
Adds a schedule to the list of batch job schedules.- Parameters:
aSchedule- Schedule to add to the list of batch job schedules
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-