Class EPPStatusSetAttribute
java.lang.Object
com.verisign.epp.codec.statusset.v02.EPPStatusSetAttribute
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Contains a status set attribute that includes a name and a value. The value
can be empty for returning the supported attribute names.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPStatusSetAttribute.EPPStatusSetAttribute(String aName) Constructor forEPPStatusSetAttributethat takes the required attribute name.EPPStatusSetAttribute(String aName, String aValue) Constructor forEPPStatusSetAttributethat takes the required attribute name and the optional attribute value. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPStatusSetAttributewith this instance.getName()Gets the status set attribute name.Returns the XML namespace associated with theEPPCodecComponent.getValue()Gets the status set attribute value.booleanhasName()Is the status set attribute name defined?booleanhasValue()Is the status set attribute value defined?voidSets the status set attribute name.voidSets the status set attribute value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPStatusSetInfo.- See Also:
-
ELM_NAME
XML root tag forEPPStatusSetAttribute.
-
-
Constructor Details
-
EPPStatusSetAttribute
public EPPStatusSetAttribute()Default constructor forEPPStatusSetAttribute. -
EPPStatusSetAttribute
Constructor forEPPStatusSetAttributethat takes the required attribute name.- Parameters:
aName- Name of the attribute
-
EPPStatusSetAttribute
Constructor forEPPStatusSetAttributethat takes the required attribute name and the optional attribute value.- Parameters:
aName- Name of the attributeaValue- Value of the attribute. The value can be set tonull.
-
-
Method Details
-
hasName
public boolean hasName()Is the status set attribute name defined?- Returns:
trueif the status set attribute name is defined;falseotherwise.
-
getName
Gets the status set attribute name.- Returns:
- Status set attribute name if defined;
nullotherwise.
-
setName
Sets the status set attribute name.- Parameters:
aName- The status set attribute name to set
-
hasValue
public boolean hasValue()Is the status set attribute value defined?- Returns:
trueif the status set attribute value is defined;falseotherwise.
-
getValue
Gets the status set attribute value.- Returns:
- Status set attribute value if defined;
nullotherwise.
-
setValue
Sets the status set attribute value.- Parameters:
aValue- The status set attribute value to set
-
encode
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPStatusSetAttribute
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPStatusSetAttribute - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPStatusSetAttributewith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-