Class EPPMaintenanceId
java.lang.Object
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceId
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Server unique id for the maintenance with an optional human-readable
description of the maintenance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPMaintenenceId.EPPMaintenanceId(String aId) Constructor forEPPMaintenenceIdthat the takes the required id value.EPPMaintenanceId(String aId, String aName, String aNameLang) Constructor forEPPMaintenenceIdthat takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMaintenenceId.voidDecode theEPPMaintenenceIdattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPMaintenenceIdinstance.booleanimplements a deepEPPMaintenenceIdcompare.getId()Gets the id value of the maintenance.voidSets the id value of the maintenance.getName()Gets the human-readable name of the maintenance.Gets the name language value.Returns the XML namespace associated with theEPPCodecComponent.booleanhasName()Is the name defined?booleanIs the name language defined with a non-default value?voidSets the human-readable name of the maintenance without having to create an external resource.voidsetNameLang(String aNameLang) Sets the name language value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPMaintenenceIdroot element.- See Also:
-
-
Constructor Details
-
EPPMaintenanceId
public EPPMaintenanceId()Default constructor forEPPMaintenenceId. The id attribute must be set usingsetIdbefore invokingencode(Document). -
EPPMaintenanceId
Constructor forEPPMaintenenceIdthat the takes the required id value.- Parameters:
aId- Id value for the maintenance
-
EPPMaintenanceId
Constructor forEPPMaintenenceIdthat takes all attributes.- Parameters:
aId- Id value for the maintenanceaName- Optional id description that provides a human-readable description of the maintenance. Set tonullto undefine.aNameLang- Optional id description language. Set tonullto undefine.
-
-
Method Details
-
getId
Gets the id value of the maintenance.- Returns:
- Maintenance id value if defined;
nullotherwise.
-
getId
Sets the id value of the maintenance.- Parameters:
aId- Id value of the maintenance
-
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the human-readable name of the maintenance.- Returns:
- The human-readable name of the maintenance if defined;
nullotherwise.
-
setName
Sets the human-readable name of the maintenance without having to create an external resource.- Parameters:
aName- Free-form name of the maintenance without having to create an external resource.
-
hasNameLang
public boolean hasNameLang()Is the name language defined with a non-default value?- Returns:
trueif the name language is defined;falseotherwise.
-
getNameLang
Gets the name language value.- Returns:
- Name language if defined;
DEFAULT_LANGotherwise.
-
setNameLang
Sets the name language value.- Parameters:
aNameLang- Name language.
-
encode
Encode a DOM Element tree from the attributes of theEPPMaintenenceIdinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPMaintenenceIdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenenceIdinstance.
-
decode
Decode theEPPMaintenenceIdattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPMaintenenceIdfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
implements a deepEPPMaintenenceIdcompare. -
clone
CloneEPPMaintenenceId.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMaintenenceId - 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.
-