Class EPPStatusSet
java.lang.Object
com.verisign.epp.codec.statusset.v02.EPPStatusSet
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPStatusSet is used to define Status Set assigned to domain and host
objects in a command. This class is used in the EPPStatusSetCreate
and EPPStatusSetCreate. The additional Status Set attribute populated
by the server are available in EPPStatusSetData that is returned in
the info response.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, where the required attributes must be set prior to callingencode(Document).EPPStatusSet(String aName) Constructor forEPPStatusSetthat takes the required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(EPPStatusSetAttribute aAttribute) Adds a status set attribute to the list of status set attributes.clone()CloneEPPStatusSetinstance.voidDecode theEPPStatusSetelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPStatusSetinstance.booleanimplements a deepEPPStatusSetcompare.Gets the list of status set attributes if defined.getName()Gets the unique name for the Status Set that is up to server policy.Returns the XML namespace associated with theEPPCodecComponent.Gets an OPTIONAL free-form text reason that Status Set was assigned to the object.booleanAre the status set attributes defined?voidsetAttributes(List<EPPStatusSetAttribute> aAttributes) Sets the list of status set attributes.voidSets the unique name for the Status Set that is up to server policy.voidSets an OPTIONAL free-form text reason that Status Set was assigned to the object.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the "statusSet" local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
ATTR_STATUSSET_NAME
XML name for the status set name attribute- See Also:
-
-
Constructor Details
-
EPPStatusSet
public EPPStatusSet()Default constructor, where the required attributes must be set prior to callingencode(Document). -
EPPStatusSet
Constructor forEPPStatusSetthat takes the required attributes.- Parameters:
aName- The unique name for the Status Set that is up to server policy.
-
-
Method Details
-
getName
Gets the unique name for the Status Set that is up to server policy.- Returns:
- the unique name for the Status Set
-
setName
Sets the unique name for the Status Set that is up to server policy.- Parameters:
aName- Unique name for the Status Set
-
getReason
Gets an OPTIONAL free-form text reason that Status Set was assigned to the object.- Returns:
- the reason if set;
nullotherwise.
-
setReason
Sets an OPTIONAL free-form text reason that Status Set was assigned to the object.- Parameters:
aReason- The reason to set. Set tonullto unset.
-
hasAttributes
public boolean hasAttributes()Are the status set attributes defined?- Returns:
trueif the status set attributes are defined;falseotherwise.
-
getAttributes
Gets the list of status set attributes if defined.- Returns:
- List of status set attributes if defined;
nullotherwise.
-
addAttribute
Adds a status set attribute to the list of status set attributes.- Parameters:
aAttribute- The status set attribute to add.
-
setAttributes
Sets the list of status set attributes.- Parameters:
aAttributes- The status set attributes to set. Set tonullto unset.
-
clone
CloneEPPStatusSetinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPStatusSet - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode a DOM Element tree from the attributes of theEPPStatusSetinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPStatusSetinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPStatusSetinstance.
-
decode
Decode theEPPStatusSetelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPStatusSetfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPStatusSetcompare. -
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.
-