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.StringELM_LOCALNAMEConstant for the local namestatic java.lang.StringELM_NAMEConstant 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.Objectclone()CloneEPPLaunchNotice.voiddecode(org.w3c.dom.Element aElement)Decode theEPPLaunchNoticecomponentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPLaunchNoticecompare.java.util.DategetAcceptedDate()Gets the date and time that the claims notice was displayed or accepted.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.DategetNotAfterDate()Gets the date and time of expiration of the claims notice.java.lang.StringgetNoticeId()Gets the unique notice identifier of the claims notice.java.lang.StringgetValidatorId()Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator used for the Trademark Claims Notice information.booleanhasValidatorId()Is the Validator Identifier defined?voidsetAcceptedDate(java.util.Date aAcceptedDate)Sets the date and time that the claims notice was displayed or accepted.voidsetNotAfterDate(java.util.Date aNotAfterDate)Sets the date and time of expiration of the claims notice.voidsetNoticeId(java.lang.String aNoticeId)Sets the unique notice identifier of the claims notice.voidsetValidatorId(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.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
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.CloneNotSupportedExceptionCloneEPPLaunchNotice.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein 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 EPPDecodeExceptionDecode theEPPLaunchNoticecomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPLaunchNotice- Throws:
EPPDecodeException- Error decoding theEPPLaunchNotice
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchNoticecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLaunchNoticeinstance 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;
nullotherwise.
-
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;
nullotherwise 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, wherenullor 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:
trueif the Validator Identifier is defined;falseotherwise.
-
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;
nullotherwise.
-
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;
nullotherwise.
-
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 XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-