Class EPPMaintenanceType
- java.lang.Object
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceType
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPMaintenanceType extends java.lang.Object implements EPPCodecComponent
Type of the maintenance that has the possible set of values defined by server policy, such as "Routine Maintenance", "Software Update", "Software Upgrade", or "Extended Outage".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_LANG
Default languagestatic java.lang.String
ELM_LOCALNAME
XML local name forEPPMaintenanceType
.static java.lang.String
ELM_NAME
XML root tag forEPPMaintenance
.
-
Constructor Summary
Constructors Constructor Description EPPMaintenanceType()
Default constructor forEPPMaintenanceType
.EPPMaintenanceType(java.lang.String aType)
Constructor forEPPMaintenanceType
with the required attribute as a parameter.EPPMaintenanceType(java.lang.String aType, java.lang.String aLang)
Constructor forEPPMaintenanceType
with all of the attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPMaintenanceType
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPMaintenanceType
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPMaintenanceType
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPMaintenanceType
compare.java.lang.String
getLang()
Gets the type language value.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.String
getType()
Gets the maintenance typeboolean
hasLang()
Is the type language defined with a non-default value?void
setLang(java.lang.String aLang)
Sets the type language value.void
setType(java.lang.String aType)
Sets the maintenance typejava.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
DEFAULT_LANG
public static final java.lang.String DEFAULT_LANG
Default language- See Also:
- Constant Field Values
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPMaintenanceType
.- 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
-
EPPMaintenanceType
public EPPMaintenanceType()
Default constructor forEPPMaintenanceType
. The required attributes need to be set. Thelang
attribute defaults toDEFAULT_LANG
.
-
EPPMaintenanceType
public EPPMaintenanceType(java.lang.String aType)
Constructor forEPPMaintenanceType
with the required attribute as a parameter.- Parameters:
aType
- Type value
-
EPPMaintenanceType
public EPPMaintenanceType(java.lang.String aType, java.lang.String aLang)
Constructor forEPPMaintenanceType
with all of the attributes as parameters.- Parameters:
aType
- Type valueaLang
- Language of the type
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the maintenance type- Returns:
- The type of the maintenance if defined;
null
otherwise.
-
setType
public void setType(java.lang.String aType)
Sets the maintenance type- Parameters:
aType
- Type of the maintenance
-
hasLang
public boolean hasLang()
Is the type language defined with a non-default value?- Returns:
true
if the type language is defined;false
otherwise.
-
getLang
public java.lang.String getLang()
Gets the type language value.- Returns:
- Type language if defined;
DEFAULT_LANG
otherwise.
-
setLang
public void setLang(java.lang.String aLang)
Sets the type language value.- Parameters:
aLang
- Type language for value.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPMaintenanceType
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceType
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPMaintenanceType
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPMaintenanceType
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPMaintenanceType
from.- Throws:
EPPDecodeException
- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPMaintenanceType
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPMaintenanceType
instance to compare with- Returns:
true
ofaObject
is equal to instance;false
otherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPMaintenanceType
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPMaintenanceType
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
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
.
-
-