Class EPPMaintenanceSystem
- java.lang.Object
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceSystem
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPMaintenanceSystem extends java.lang.Object implements EPPCodecComponent
EPPMaintenanceSystemindicates what impacted system with the following attributes:
- name - Name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'Portal', etc..
- host - Indicates the affected maintained system based on host name or host address.
- impact - Indicates the impact level, which is either 'full' or 'partial'.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPMaintenanceSystem.ImpactImpact enumerated values.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPMaintenanceSystem.static java.lang.StringELM_NAMEXML root tag forEPPMaintenance.
-
Constructor Summary
Constructors Constructor Description EPPMaintenanceSystem()Default constructor forEPPMaintenanceSystem.EPPMaintenanceSystem(java.lang.String aName, java.lang.String aHost, EPPMaintenanceSystem.Impact aImpact)Constructor forEPPMaintenanceSystemwith all of the attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPMaintenanceSystem.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMaintenanceSystemattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPMaintenanceSysteminstance.booleanequals(java.lang.Object aObject)implements a deepEPPMaintenanceSystemcompare.java.lang.StringgetHost()Gets the OPTIONAL affected maintained system host.EPPMaintenanceSystem.ImpactgetImpact()Gets the impact level.java.lang.StringgetName()Gets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasHost()Is the system host defined?voidsetHost(java.lang.String aHost)Sets the OPTIONAL affected maintained system host.voidsetImpact(EPPMaintenanceSystem.Impact impact)Sets the impact level.voidsetName(java.lang.String aName)Sets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..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 forEPPMaintenanceSystem.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPMaintenance.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceSystem
public EPPMaintenanceSystem()
Default constructor forEPPMaintenanceSystem. The required attributes need to be set. Theimpactattribute defaults toEPPMaintenanceSystem.Impact.partial.
-
EPPMaintenanceSystem
public EPPMaintenanceSystem(java.lang.String aName, java.lang.String aHost, EPPMaintenanceSystem.Impact aImpact)Constructor forEPPMaintenanceSystemwith all of the attributes as parameters.- Parameters:
aName- Name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..aHost- Host of the systemaImpact- Impact of system maintenance
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..- Returns:
- Name of the affected system if set;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..- Parameters:
aName- Name of the affected system
-
hasHost
public boolean hasHost()
Is the system host defined?- Returns:
trueif the system host is defined;falseotherwise.
-
getHost
public java.lang.String getHost()
Gets the OPTIONAL affected maintained system host.- Returns:
- The affected maintained system host if defined;
nullotherwise.
-
setHost
public void setHost(java.lang.String aHost)
Sets the OPTIONAL affected maintained system host.- Parameters:
aHost- affected maintained system host.
-
getImpact
public EPPMaintenanceSystem.Impact getImpact()
Gets the impact level.- Returns:
- Returns the impact level with the default set to
EPPMaintenanceSystem.Impact.partial.
-
setImpact
public void setImpact(EPPMaintenanceSystem.Impact impact)
Sets the impact level.- Parameters:
impact- level of the system maintenance
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPMaintenanceSysteminstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceSysteminstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceSysteminstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMaintenanceSystemattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceSystemfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPMaintenanceSystemcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPMaintenanceSysteminstance to compare with- Returns:
trueofaObjectis equal to instance;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMaintenanceSystem.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPMaintenanceSystem - 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.
-
-