Class EPPMaintenanceItem
java.lang.Object
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceItem
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a maintenance that includes the following child elements:
- <maint:id> element that is the maintenance identifier.
- <maint:type> The OPTIONAL type of the maintenance that has the possible set of values defined by server policy.
- <maint:pollType> An OPTIONAL element that is the registry maintenance notification poll message type.
- <maint:systems> elements that contains one or more <maint:system> elements.
- <maint:environment> element that indicates the type of the affected system using the Environment enumeration.
- <maint:start> element that represents the maintenance start date and time.
- <maint:end> element that represents the maintenance end date and time.
- <maint:reason> element that is the reason behind the maintenance.
- <maint:description> OPTIONAL free-form description of the maintenance.
- <maint:tlds> OPTIONAL element containing list of affected top-level domains or registry zones.
- <maint:intervention> OPTIONAL element that contains when the maintenance affects the connection or implementation for the client.
- <maint:crDate> element that represents the created date and time for the maintenance.
- <maint:upDate> OPTIONAL element that represents the updated date and time for the maintenance.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnvironment enumerated values.static enumPoll type enumerated values.static enumReason enumerated values. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMaintenance.EPPMaintenanceItem(EPPMaintenanceId aMaintenanceId, List<EPPMaintenanceSystem> aSystems, EPPMaintenanceItem.Environment aEnvironment, Date aStartDate, Date aEndDate, EPPMaintenanceItem.Reason aReason, Date aCreatedDate) Constructor forEPPMaintenancewith all of the required attributes as parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(EPPMaintenanceDescription aDescription) Add a description to the list of descriptions.voidaddSystem(EPPMaintenanceSystem aSystem) Add a system to the list of affected systems.voidAdd a top-level domain to the list of affected top-level domains.voidaddType(EPPMaintenanceType aType) Add a type to the list of types.clone()CloneEPPMaintenance.voidDecode theEPPMaintenanceattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPMaintenanceinstance.booleanimplements a deepEPPMaintenancecompare.Gets the maintenance created date.Gets the custom environment name, when the environment is set toEPPMaintenanceItem.Environment.custom.Gets the free-form descriptions of the maintenance without having to create an external resource.Gets URI to detailed maintenance description.Gets the optional maintenance end date and time.Gets the type of the affected system.Gets the optional client intervention by the maintenance.Gets the optional maintenance last updated date.Gets the maintenance identifier.Returns the XML namespace associated with theEPPCodecComponent.Gets the poll type of the Registry Maintenance Notification poll message.Gets the reason behind the maintenance.Gets the optional maintenance start date and time.Gets the maintenance systems.getTlds()Gets the optional top-level domains affected by the maintenance.getTypes()Gets the types of the maintenance.booleanIs the custom environment name defined?booleanIs the descriptions defined?booleanIs the detail defined?booleanIs the last updated date defined?booleanIs the poll type defined?booleanhasTypes()Is the types defined?voidsetCreatedDate(Date aCreatedDate) Sets the maintenance created date.voidsetCustomEnvironment(String aCustomEnvironment) Sets the custom environment name, when the environment is set toEPPMaintenanceItem.Environment.custom.voidsetDescriptions(List<EPPMaintenanceDescription> aDescriptions) Sets the free-form descriptions of the maintenance without having to create an external resource.voidSets URI to detailed maintenance description.voidsetEndDate(Date aEndDate) Sets the optional maintenance end date and time.voidsetEnvironment(EPPMaintenanceItem.Environment aEnvironment) Sets the type of the affected system.voidsetIntervention(EPPMaintenanceIntervention aIntervention) Sets the optional client intervention.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the maintenance last updated date.voidsetMaintenanceId(EPPMaintenanceId aMaintenanceId) Sets the maintenance identifier.voidsetPollType(EPPMaintenanceItem.PollType aPollType) Sets the poll type of the Registry Maintenance Notification poll message.voidsetReason(EPPMaintenanceItem.Reason aReason) Sets the reason behind the maintenance.voidsetStartDate(Date aStartDate) Sets the optional maintenance start date and time.voidsetSystems(List<EPPMaintenanceSystem> aSystems) Sets the maintenance systems.voidOptional top-level domains affected by the maintenance.voidsetTypes(List<EPPMaintenanceType> aTypes) Sets the types of the maintenance.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPMaintenance.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenance.- See Also:
-
-
Constructor Details
-
EPPMaintenanceItem
public EPPMaintenanceItem()Default constructor forEPPMaintenance. All the the attributes default tonull. Must call required setter methods before invokingencode(Document), which include:
- maintenance identifier -
setMaintenanceId(EPPMaintenanceId) - systems -
setSystems(List) - environment -
setStartDate(Date) - start date -
setEndDate(Date) - end date -
setEnvironment(Environment) - reason -
setReason(Reason) - created date -
setCreatedDate(Date)
- maintenance identifier -
-
EPPMaintenanceItem
public EPPMaintenanceItem(EPPMaintenanceId aMaintenanceId, List<EPPMaintenanceSystem> aSystems, EPPMaintenanceItem.Environment aEnvironment, Date aStartDate, Date aEndDate, EPPMaintenanceItem.Reason aReason, Date aCreatedDate) Constructor forEPPMaintenancewith all of the required attributes as parameters.- Parameters:
aMaintenanceId- Maintenance identifieraSystems- Systems affected by the maintenance.aEnvironment- Type of the affected system.aStartDate- Maintenance start date and timeaEndDate- Maintenance end date and timeaReason- Reason behind the maintenance.aCreatedDate- Maintenance created date
-
-
Method Details
-
getMaintenanceId
Gets the maintenance identifier.- Returns:
- The maintenance identifier if defined;
nullotherwise.
-
setMaintenanceId
Sets the maintenance identifier.- Parameters:
aMaintenanceId- The maintenance identifier.
-
hasTypes
public boolean hasTypes()Is the types defined?- Returns:
trueif the types is defined;falseotherwise.
-
getTypes
Gets the types of the maintenance.- Returns:
- The types of the maintenance if defined;
nullotherwise.
-
addType
Add a type to the list of types.- Parameters:
aType- Type to add to the list.
-
setTypes
Sets the types of the maintenance.- Parameters:
aTypes- Types of the maintenance.
-
hasPollType
public boolean hasPollType()Is the poll type defined?- Returns:
trueif the poll type is defined;falseotherwise.
-
getPollType
Gets the poll type of the Registry Maintenance Notification poll message.- Returns:
- Poll type of the Registry Maintenance Notification poll message if
defined;
nullotherwise.
-
setPollType
Sets the poll type of the Registry Maintenance Notification poll message.- Parameters:
aPollType- Poll type of the Registry Maintenance Notification poll message. Set tonullto unset it.
-
getSystems
Gets the maintenance systems.- Returns:
- Maintenance systems if defined;
nullotherwise.
-
addSystem
Add a system to the list of affected systems.- Parameters:
aSystem- Affected system to add to the list.
-
setSystems
Sets the maintenance systems.- Parameters:
aSystems- Maintenance systems to set.
-
getEnvironment
Gets the type of the affected system.- Returns:
- Type of the affected system if defined;
codeotherwise.
-
setEnvironment
Sets the type of the affected system.- Parameters:
aEnvironment- The type of the affect system to set.
-
hasCustomEnvironment
public boolean hasCustomEnvironment()Is the custom environment name defined?- Returns:
trueif the custom environment name is defined;falseotherwise.
-
getCustomEnvironment
Gets the custom environment name, when the environment is set toEPPMaintenanceItem.Environment.custom.- Returns:
- Custom environment name if defined;
nullotherwise.
-
setCustomEnvironment
Sets the custom environment name, when the environment is set toEPPMaintenanceItem.Environment.custom.- Parameters:
aCustomEnvironment- The custom environment name to set.
-
getStartDate
Gets the optional maintenance start date and time.- Returns:
- start date and time if defined;
nullotherwise.
-
setStartDate
Sets the optional maintenance start date and time.- Parameters:
aStartDate- Maintenance start date and time. Set tonullif undefined.
-
getEndDate
Gets the optional maintenance end date and time.- Returns:
- end date and time if defined;
nullotherwise.
-
setEndDate
Sets the optional maintenance end date and time.- Parameters:
aEndDate- Maintenance end date and time. Set tonullif undefined.
-
getReason
Gets the reason behind the maintenance.- Returns:
- Reason behind the maintenance if defined;
nullotherwise.
-
setReason
Sets the reason behind the maintenance.- Parameters:
aReason- Reason behind the maintenance to set.
-
hasDetail
public boolean hasDetail()Is the detail defined?- Returns:
trueif the detail is defined;falseotherwise.
-
getDetail
Gets URI to detailed maintenance description.- Returns:
- URI to detailed maintenance description if defined;
nullotherwise.
-
setDetail
Sets URI to detailed maintenance description.- Parameters:
aDetail- URI to detailed maintenance description to set
-
hasDescriptions
public boolean hasDescriptions()Is the descriptions defined?- Returns:
trueif the descriptions is defined;falseotherwise.
-
getDescriptions
Gets the free-form descriptions of the maintenance without having to create an external resource.- Returns:
- The free-form descriptions of the maintenance if defined;
nullotherwise.
-
addDescription
Add a description to the list of descriptions.- Parameters:
aDescription- Description to add to the list.
-
setDescriptions
Sets the free-form descriptions of the maintenance without having to create an external resource.- Parameters:
aDescriptions- Free-form descriptions of the maintenance without having to create an external resource. Set tonullto unset the descriptions.
-
getTlds
Gets the optional top-level domains affected by the maintenance.- Returns:
- top-level domains affected by the maintenance if defined;
nullotherwise.
-
addTld
Add a top-level domain to the list of affected top-level domains.- Parameters:
aTld- Top-level domain to add to the list.
-
setTlds
Optional top-level domains affected by the maintenance.- Parameters:
aTlds- the tlds to set. Set tonullif undefined.
-
getIntervention
Gets the optional client intervention by the maintenance.- Returns:
- optional client intervention if defined;
nullotherwise.
-
setIntervention
Sets the optional client intervention.- Parameters:
aIntervention- client intervention. Set tonullif undefined.
-
getCreatedDate
Gets the maintenance created date.- Returns:
- Maintenance created date if defined;
nullotherwise.
-
setCreatedDate
Sets the maintenance created date.- Parameters:
aCreatedDate- Maintenance created date
-
hasLastUpdatedDate
public boolean hasLastUpdatedDate()Is the last updated date defined?- Returns:
trueif the last updated date is defined;falseotherwise.
-
getLastUpdatedDate
Gets the optional maintenance last updated date.- Returns:
- Maintenance last updated date if defined;
nullotherwise.
-
setLastUpdatedDate
Sets the maintenance last updated date.- Parameters:
aLastUpdatedDate- Maintenance last updated date
-
encode
Encode a DOM Element tree from the attributes of theEPPMaintenanceinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceinstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceinstance.
-
decode
Decode theEPPMaintenanceattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenancefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
implements a deepEPPMaintenancecompare. -
clone
CloneEPPMaintenance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMaintenance - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-