Package com.verisign.epp.codec.launch
Class EPPLaunchNotice
- java.lang.Object
-
- com.verisign.epp.codec.launch.EPPLaunchNotice
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPLaunchNotice extends java.lang.Object implements EPPCodecComponent
Class to hold the launch notice information including the notice identifier, the expiration (not after) date and time, and the date and time the claims notice was accepted.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
Constant for the local namestatic java.lang.String
ELM_NAME
Constant for the tag name
-
Constructor Summary
Constructors Constructor Description EPPLaunchNotice()
Default constructor forEPPLaunchNotice
.EPPLaunchNotice(java.lang.String aNoticeId, java.util.Date aNotAfterDate, java.util.Date aAcceptedDate)
Constructor that takes all of he attributes of theEPPLaunchNotice
.EPPLaunchNotice(java.lang.String aNoticeId, java.util.Date aNotAfterDate, java.util.Date aAcceptedDate, java.lang.String aValidatorId)
Constructor that takes all of he attributes of theEPPLaunchNotice
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPLaunchNotice
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPLaunchNotice
componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPLaunchNotice
compare.java.util.Date
getAcceptedDate()
Gets the date and time that the claims notice was displayed or accepted.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.util.Date
getNotAfterDate()
Gets the date and time of expiration of the claims notice.java.lang.String
getNoticeId()
Gets the unique notice identifier of the claims notice.java.lang.String
getValidatorId()
Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information.boolean
hasValidatorId()
Is the Validator Identifier defined?void
setAcceptedDate(java.util.Date aAcceptedDate)
Sets the date and time that the claims notice was displayed or accepted.void
setNotAfterDate(java.util.Date aNotAfterDate)
Sets the date and time of expiration of the claims notice.void
setNoticeId(java.lang.String aNoticeId)
Sets the unique notice identifier of the claims notice.void
setValidatorId(java.lang.String aValidatorId)
Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the tag name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchNotice
public EPPLaunchNotice()
Default constructor forEPPLaunchNotice
.
-
EPPLaunchNotice
public EPPLaunchNotice(java.lang.String aNoticeId, java.util.Date aNotAfterDate, java.util.Date aAcceptedDate)
Constructor that takes all of he attributes of theEPPLaunchNotice
.- Parameters:
aNoticeId
- Unique notice identifier of the claims noticeaNotAfterDate
- Date and time of the expiration of the claims noticeaAcceptedDate
- Date and time when the notice was displayed or accepted
-
EPPLaunchNotice
public EPPLaunchNotice(java.lang.String aNoticeId, java.util.Date aNotAfterDate, java.util.Date aAcceptedDate, java.lang.String aValidatorId)
Constructor that takes all of he attributes of theEPPLaunchNotice
.- Parameters:
aNoticeId
- Unique notice identifier of the claims noticeaNotAfterDate
- Date and time of the expiration of the claims noticeaAcceptedDate
- Date and time when the notice was displayed or acceptedaValidatorId
- Identifier of the Trademark Validator used to query for the Claims Notice information.
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPLaunchNotice
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPLaunchNotice
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException
- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPLaunchNotice
component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root element of theEPPLaunchNotice
- Throws:
EPPDecodeException
- Error decoding theEPPLaunchNotice
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchNotice
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPLaunchNotice
instance to compare with- Returns:
- true if equal false otherwise
-
getNoticeId
public java.lang.String getNoticeId()
Gets the unique notice identifier of the claims notice.- Returns:
- Unique notice identifier if set;
null
otherwise.
-
setNoticeId
public void setNoticeId(java.lang.String aNoticeId)
Sets the unique notice identifier of the claims notice.- Parameters:
aNoticeId
- Unique notice identifier
-
getValidatorId
public java.lang.String getValidatorId()
Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information. If undefined, the ICANN TMCH is the Validator or if the value is "tmch".- Returns:
- The Validator Identifier if defined;
null
otherwise to indicate to use the ICANN TMCH.
-
setValidatorId
public void setValidatorId(java.lang.String aValidatorId)
Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information. If undefined, the ICANN TMCH is the Validator or if the value is "tmch".- Parameters:
aValidatorId
- Validator Identifier, wherenull
or a value of "tmch" can be specified to indicate the use of the ICANN TMCH.
-
hasValidatorId
public boolean hasValidatorId()
Is the Validator Identifier defined?- Returns:
true
if the Validator Identifier is defined;false
otherwise.
-
getNotAfterDate
public java.util.Date getNotAfterDate()
Gets the date and time of expiration of the claims notice.- Returns:
- Date and time of the expiration of the claims notice if set;
null
otherwise.
-
setNotAfterDate
public void setNotAfterDate(java.util.Date aNotAfterDate)
Sets the date and time of expiration of the claims notice.- Parameters:
aNotAfterDate
- Date and time of expiration of the claims notice.
-
getAcceptedDate
public java.util.Date getAcceptedDate()
Gets the date and time that the claims notice was displayed or accepted.- Returns:
- Date and time that the claims notice was displayed or accepted if
set;
null
otherwise.
-
setAcceptedDate
public void setAcceptedDate(java.util.Date aAcceptedDate)
Sets the date and time that the claims notice was displayed or accepted.- Parameters:
aAcceptedDate
- Date and time that the claims notice was displayed or accepted.
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-