Class EPPMaintenanceId
- java.lang.Object
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceId
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPMaintenanceId extends java.lang.Object implements EPPCodecComponent
Server unique id for the maintenance with an optional human-readable description of the maintenance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEXML Element Name ofEPPMaintenenceIdroot element.
-
Constructor Summary
Constructors Constructor Description EPPMaintenanceId()Default constructor forEPPMaintenenceId.EPPMaintenanceId(java.lang.String aId)Constructor forEPPMaintenenceIdthat the takes the required id value.EPPMaintenanceId(java.lang.String aId, java.lang.String aName, java.lang.String aNameLang)Constructor forEPPMaintenenceIdthat takes all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPMaintenenceId.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMaintenenceIdattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPMaintenenceIdinstance.booleanequals(java.lang.Object aObject)implements a deepEPPMaintenenceIdcompare.java.lang.StringgetId()Gets the id value of the maintenance.voidgetId(java.lang.String aId)Sets the id value of the maintenance.java.lang.StringgetName()Gets the human-readable name of the maintenance.java.lang.StringgetNameLang()Gets the name language value.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasName()Is the name defined?booleanhasNameLang()Is the name language defined with a non-default value?voidsetName(java.lang.String aName)Sets the human-readable name of the maintenance without having to create an external resource.voidsetNameLang(java.lang.String aNameLang)Sets the name language value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPMaintenenceIdroot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceId
public EPPMaintenanceId()
Default constructor forEPPMaintenenceId. The id attribute must be set usingsetIdbefore invokingencode(Document).
-
EPPMaintenanceId
public EPPMaintenanceId(java.lang.String aId)
Constructor forEPPMaintenenceIdthat the takes the required id value.- Parameters:
aId- Id value for the maintenance
-
EPPMaintenanceId
public EPPMaintenanceId(java.lang.String aId, java.lang.String aName, java.lang.String aNameLang)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 Detail
-
getId
public java.lang.String getId()
Gets the id value of the maintenance.- Returns:
- Maintenance id value if defined;
nullotherwise.
-
getId
public void getId(java.lang.String aId)
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
public java.lang.String getName()
Gets the human-readable name of the maintenance.- Returns:
- The human-readable name of the maintenance if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
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
public java.lang.String getNameLang()
Gets the name language value.- Returns:
- Name language if defined;
DEFAULT_LANGotherwise.
-
setNameLang
public void setNameLang(java.lang.String aNameLang)
Sets the name language value.- Parameters:
aNameLang- Name language.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPMaintenenceIdcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPMaintenenceIdinstance to compare with- Returns:
trueifaObjectis equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMaintenenceId.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPMaintenenceId - 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.
-
-