Class EPPMaintenanceIntervention
- java.lang.Object
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceIntervention
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPMaintenanceIntervention extends java.lang.Object implements EPPCodecComponent
EPPMaintenanceInterventionindicates what impact the maintenance will have to the client with the two boolean attributes:
- connection - to indicate if a client needs to do something that is connection-related, such as a reconnect.
- implementation - To indicate if a client needs to do something that is implementation-related, such as a code change.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPMaintenanceIntervention.static java.lang.StringELM_NAMEXML root tag forEPPMaintenanceIntervention.
-
Constructor Summary
Constructors Constructor Description EPPMaintenanceIntervention()Default constructor forEPPMaintenanceIntervention.EPPMaintenanceIntervention(boolean aConnection, boolean aImplementation)Constructor forEPPMaintenanceInterventionwith all of the attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPMaintenanceIntervention.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMaintenanceInterventionattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPMaintenanceInterventioninstance.booleanequals(java.lang.Object aObject)implements a deepEPPMaintenanceInterventioncompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanisConnection()Gets whether the client needs to do something that is connection-related, such as a reconnect.booleanisImplementation()Gets whether the client needs to do something that is implementation-related, such as a code change.voidsetConnection(boolean aConnection)Sets whether the client needs to do something that is connection-related, such as a reconnect.voidsetImplementation(boolean aImplementation)Sets whether the client needs to do something that is implementation-related, such as a code change.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 forEPPMaintenanceIntervention.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPMaintenanceIntervention.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceIntervention
public EPPMaintenanceIntervention()
Default constructor forEPPMaintenanceIntervention. The attributesconnectionandimplementationare both set totrue.
-
EPPMaintenanceIntervention
public EPPMaintenanceIntervention(boolean aConnection, boolean aImplementation)Constructor forEPPMaintenanceInterventionwith all of the attributes as parameters.- Parameters:
aConnection- Indicates if a client needs to do something that is connection-related, such as a reconnect.aImplementation- indicates if a client needs to do something that is implementation-related, such as a code change.
-
-
Method Detail
-
isConnection
public boolean isConnection()
Gets whether the client needs to do something that is connection-related, such as a reconnect.- Returns:
trueif the client does need to take a connection-related action;falseotherwise.
-
setConnection
public void setConnection(boolean aConnection)
Sets whether the client needs to do something that is connection-related, such as a reconnect.- Parameters:
aConnection-trueif the client does need to take a connection-related action;falseotherwise.
-
isImplementation
public boolean isImplementation()
Gets whether the client needs to do something that is implementation-related, such as a code change.- Returns:
trueif the client does need to take a implementation-related action;falseotherwise.
-
setImplementation
public void setImplementation(boolean aImplementation)
Sets whether the client needs to do something that is implementation-related, such as a code change.- Parameters:
aImplementation-trueif the client does need to take a implementation-related action;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPMaintenanceInterventioninstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceInterventioninstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceInterventioninstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMaintenanceInterventionattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceInterventionfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPMaintenanceInterventioncompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPMaintenanceInterventioninstance to compare with- Returns:
trueofaObjectis equal to instance;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMaintenanceIntervention.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPMaintenanceIntervention - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
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.
-
-