Class EPPMaintenanceType
java.lang.Object
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceType
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMaintenanceType.EPPMaintenanceType(String aType) Constructor forEPPMaintenanceTypewith the required attribute as a parameter.EPPMaintenanceType(String aType, String aLang) Constructor forEPPMaintenanceTypewith all of the attributes as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMaintenanceType.voidDecode theEPPMaintenanceTypeattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPMaintenanceTypeinstance.booleanimplements a deepEPPMaintenanceTypecompare.getLang()Gets the type language value.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the maintenance typebooleanhasLang()Is the type language defined with a non-default value?voidSets the type language value.voidSets the maintenance typetoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
DEFAULT_LANG
Default language- See Also:
-
ELM_LOCALNAME
XML local name forEPPMaintenanceType.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenance.- See Also:
-
-
Constructor Details
-
EPPMaintenanceType
public EPPMaintenanceType()Default constructor forEPPMaintenanceType. The required attributes need to be set. Thelangattribute defaults toDEFAULT_LANG. -
EPPMaintenanceType
Constructor forEPPMaintenanceTypewith the required attribute as a parameter.- Parameters:
aType- Type value
-
EPPMaintenanceType
Constructor forEPPMaintenanceTypewith all of the attributes as parameters.- Parameters:
aType- Type valueaLang- Language of the type
-
-
Method Details
-
getType
Gets the maintenance type- Returns:
- The type of the maintenance if defined;
nullotherwise.
-
setType
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
Gets the type language value.- Returns:
- Type language if defined;
DEFAULT_LANGotherwise.
-
setLang
Sets the type language value.- Parameters:
aLang- Type language for value.
-
encode
Encode 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
Decode 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
implements a deepEPPMaintenanceTypecompare. -
clone
CloneEPPMaintenanceType.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMaintenanceType - 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.
-