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.StringDEFAULT_LANGDefault languagestatic java.lang.StringELM_LOCALNAMEXML local name forEPPMaintenanceType.static java.lang.StringELM_NAMEXML root tag forEPPMaintenance.
-
Constructor Summary
Constructors Constructor Description EPPMaintenanceType()Default constructor forEPPMaintenanceType.EPPMaintenanceType(java.lang.String aType)Constructor forEPPMaintenanceTypewith the required attribute as a parameter.EPPMaintenanceType(java.lang.String aType, java.lang.String aLang)Constructor forEPPMaintenanceTypewith all of the attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPMaintenanceType.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMaintenanceTypeattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPMaintenanceTypeinstance.booleanequals(java.lang.Object aObject)implements a deepEPPMaintenanceTypecompare.java.lang.StringgetLang()Gets the type language value.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetType()Gets the maintenance typebooleanhasLang()Is the type language defined with a non-default value?voidsetLang(java.lang.String aLang)Sets the type language value.voidsetType(java.lang.String aType)Sets the maintenance typejava.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation 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. Thelangattribute defaults toDEFAULT_LANG.
-
EPPMaintenanceType
public EPPMaintenanceType(java.lang.String aType)
Constructor forEPPMaintenanceTypewith the required attribute as a parameter.- Parameters:
aType- Type value
-
EPPMaintenanceType
public EPPMaintenanceType(java.lang.String aType, java.lang.String aLang)Constructor forEPPMaintenanceTypewith 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;
nullotherwise.
-
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:
trueif the type language is defined;falseotherwise.
-
getLang
public java.lang.String getLang()
Gets the type language value.- Returns:
- Type language if defined;
DEFAULT_LANGotherwise.
-
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 EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPMaintenanceTypeinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenanceTypeinstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceTypeinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMaintenanceTypeattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceTypefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPMaintenanceTypecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPMaintenanceTypeinstance to compare with- Returns:
trueofaObjectis equal to instance;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMaintenanceType.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 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.
-
-