Class EPPMaintenanceSystem
java.lang.Object
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceSystem
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPMaintenanceSystem indicates 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumImpact enumerated values. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMaintenanceSystem.EPPMaintenanceSystem(String aName, String aHost, EPPMaintenanceSystem.Impact aImpact) Constructor forEPPMaintenanceSystemwith all of the attributes as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMaintenanceSystem.voidDecode theEPPMaintenanceSystemattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPMaintenanceSysteminstance.booleanimplements a deepEPPMaintenanceSystemcompare.getHost()Gets the OPTIONAL affected maintained system host.Gets the impact level.getName()Gets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..Returns the XML namespace associated with theEPPCodecComponent.booleanhasHost()Is the system host defined?voidSets the OPTIONAL affected maintained system host.voidsetImpact(EPPMaintenanceSystem.Impact impact) Sets the impact level.voidSets the name of the affected system, such as 'EPP', 'WHOIS', 'DNS', 'PORTAL', etc..toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPMaintenanceSystem.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenance.- See Also:
-
-
Constructor Details
-
EPPMaintenanceSystem
public EPPMaintenanceSystem()Default constructor forEPPMaintenanceSystem. The required attributes need to be set. Theimpactattribute defaults toEPPMaintenanceSystem.Impact.partial. -
EPPMaintenanceSystem
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 Details
-
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
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
Gets the OPTIONAL affected maintained system host.- Returns:
- The affected maintained system host if defined;
nullotherwise.
-
setHost
Sets the OPTIONAL affected maintained system host.- Parameters:
aHost- affected maintained system host.
-
getImpact
Gets the impact level.- Returns:
- Returns the impact level with the default set to
EPPMaintenanceSystem.Impact.partial.
-
setImpact
Sets the impact level.- Parameters:
impact- level of the system maintenance
-
encode
Encode 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
Decode 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
implements a deepEPPMaintenanceSystemcompare. -
clone
CloneEPPMaintenanceSystem.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMaintenanceSystem - 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.
-