Class EPPMaintenanceListItem
java.lang.Object
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceListItem
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a maintenance list item that includes the following child
elements:
- <maint:id> element that is the maintenance identifier.
- <maint:start> element that is the maintenance start date and time.
- <maint:end> element that is the maintenance end date and time.
- <maint:crDate> element that represents the created date and time for the maintenance.
- An OPTIONAL <maint:upDate> element that represents the updated date and time for the maintenance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMaintenanceItem.EPPMaintenanceListItem(EPPMaintenanceId aMaintenanceId, Date aStartDate, Date aEndDate, Date aCreatedDate) Constructor forEPPMaintenanceItemwith all of the required attributes as parameters.EPPMaintenanceListItem(EPPMaintenanceId aMaintenanceId, Date aStartDate, Date aEndDate, Date aCreatedDate, Date aLastUpdatedDate) Constructor forEPPMaintenanceItemwith all of the attributes as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMaintenanceItem.voidDecode theEPPMaintenanceItemattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPMaintenanceIteminstance.booleanimplements a deepEPPMaintenanceItemcompare.Gets the maintenance created date.Gets the optional maintenance end date and time.Gets the optional maintenance last updated date.Gets the maintenance identifier.Returns the XML namespace associated with theEPPCodecComponent.Gets the optional maintenance start date and time.booleanIs the end date defined?booleanIs the last updated date defined?booleanIs the start date defined?voidsetCreatedDate(Date aCreatedDate) Sets the maintenance created date.voidsetEndDate(Date aEndDate) Sets the optional maintenance end date and time.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the maintenance last updated date.voidsetMaintenanceId(EPPMaintenanceId aMaintenanceId) Sets the maintenance identifier.voidsetStartDate(Date aStartDate) Sets the optional maintenance start date and time.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPMaintenanceItem.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenanceItem.- See Also:
-
-
Constructor Details
-
EPPMaintenanceListItem
public EPPMaintenanceListItem()Default constructor forEPPMaintenanceItem. All the the attributes default tonull. Must call required setter methods before invokingencode(Document), which include:
- maintenance identifier -
setMaintenanceId(EPPMaintenanceId) - maintenance created date -
setCreatedDate(Date)
- maintenance identifier -
-
EPPMaintenanceListItem
public EPPMaintenanceListItem(EPPMaintenanceId aMaintenanceId, Date aStartDate, Date aEndDate, Date aCreatedDate) Constructor forEPPMaintenanceItemwith all of the required attributes as parameters.- Parameters:
aMaintenanceId- Maintenance identifieraStartDate- Maintenance start date and timeaEndDate- Maintenance end date and timeaCreatedDate- Maintenance created date
-
EPPMaintenanceListItem
public EPPMaintenanceListItem(EPPMaintenanceId aMaintenanceId, Date aStartDate, Date aEndDate, Date aCreatedDate, Date aLastUpdatedDate) Constructor forEPPMaintenanceItemwith all of the attributes as parameters.- Parameters:
aMaintenanceId- Maintenance identifieraStartDate- Maintenance start date. Set tonullif undefined.aEndDate- Maintenance end date. Set tonullif undefined.aCreatedDate- Maintenance created dateaLastUpdatedDate- Maintenance last updated date. Set tonullif undefined.
-
-
Method Details
-
getMaintenanceId
Gets the maintenance identifier.- Returns:
- The maintenance identifier if defined;
nullotherwise.
-
setMaintenanceId
Sets the maintenance identifier.- Parameters:
aMaintenanceId- The maintenance identifier.
-
hasStartdDate
public boolean hasStartdDate()Is the start date defined?- Returns:
trueif the start date is defined;falseotherwise.
-
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.
-
hasEndDate
public boolean hasEndDate()Is the end date defined?- Returns:
trueif the end date is defined;falseotherwise.
-
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.
-
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 theEPPMaintenanceIteminstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceIteminstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceIteminstance.
-
decode
Decode theEPPMaintenanceItemattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceItemfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
implements a deepEPPMaintenanceItemcompare. -
clone
CloneEPPMaintenanceItem.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMaintenanceItem - 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.
-