Class EPPRegistryBatchJob
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryBatchJob
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryBatchJob extends java.lang.Object implements EPPCodecComponent
EPPRegistryBatchJobcontains the information for an individual batch job.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryBatchJob.static java.lang.StringELM_NAMEXML root tag forEPPRegistryBatchJob.
-
Constructor Summary
Constructors Constructor Description EPPRegistryBatchJob()Default constructor forEPPRegistryBatchJob.EPPRegistryBatchJob(java.lang.String aName, EPPRegistryBatchSchedule aSchedule)EPPRegistryBatchJobconstructor that the required name and an individual schedule.EPPRegistryBatchJob(java.lang.String aName, EPPRegistryBatchSchedule aSchedule, java.lang.String aDescription)EPPRegistryBatchJobconstructor that the required name, an individual schedule, along with an optional description.EPPRegistryBatchJob(java.lang.String aName, java.lang.String aDescription)EPPRegistryBatchJobconstructor that the name and the optional description.EPPRegistryBatchJob(java.lang.String aName, java.util.List<EPPRegistryBatchSchedule> aSchedules, java.lang.String aDescription)EPPRegistryBatchJobconstructor that the required name, a list of schedules, along with an optional description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSchedule(EPPRegistryBatchSchedule aSchedule)Adds a schedule to the list of batch job schedules.java.lang.Objectclone()CloneEPPRegistryBatchJob.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryBatchJobattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryBatchJobinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryBatchJobcompare.java.lang.StringgetDescription()Gets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".java.lang.StringgetName()Gets the name of the batch job, like "autoRenew" or "pendingDelete".java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.List<EPPRegistryBatchSchedule>getSchedules()Gets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.booleanhasDescription()Is the description defined?booleanhasName()Is the name defined?booleanhasSchedules()Is the schedules defined?voidsetDescription(java.lang.String aDescription)Sets the OPTIONAL free-form description of batch job, like "Auto Renew Batch" or "Pending Delete Batch".voidsetName(java.lang.String aName)Sets the name of the batch job, like "autoRenew" or "pendingDelete".voidsetSchedules(java.util.List<EPPRegistryBatchSchedule> aSchedules)Sets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryBatchJob.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryBatchJob.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryBatchJob
public EPPRegistryBatchJob()
Default constructor forEPPRegistryBatchJob.
-
EPPRegistryBatchJob
public EPPRegistryBatchJob(java.lang.String aName, java.lang.String aDescription)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
public EPPRegistryBatchJob(java.lang.String aName, EPPRegistryBatchSchedule aSchedule)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
public EPPRegistryBatchJob(java.lang.String aName, EPPRegistryBatchSchedule aSchedule, java.lang.String aDescription)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(java.lang.String aName, java.util.List<EPPRegistryBatchSchedule> aSchedules, java.lang.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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryBatchJob.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryBatchJob - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryBatchJobcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryBatchJobinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
hasName
public boolean hasName()
Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
public java.lang.String getName()
Gets the name of the batch job, like "autoRenew" or "pendingDelete".- Returns:
- Name of the batch job if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
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
public java.lang.String 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
public void setDescription(java.lang.String aDescription)
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
public java.util.List<EPPRegistryBatchSchedule> getSchedules()
Gets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.- Returns:
ListofEPPRegistryBatchScheduleinstances if defined;nullotherwise.
-
setSchedules
public void setSchedules(java.util.List<EPPRegistryBatchSchedule> aSchedules)
Sets theListofEPPRegistryBatchScheduleinstances containing the batch job schedules.- Parameters:
aSchedules-ListofEPPRegistryBatchScheduleinstances
-
addSchedule
public void addSchedule(EPPRegistryBatchSchedule aSchedule)
Adds a schedule to the list of batch job schedules.- Parameters:
aSchedule- Schedule to add to the list of batch job schedules
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-