Class EPPStatusSet
java.lang.Object
com.verisign.epp.codec.statusset.v01.EPPStatusSet
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPStatusSet is used to define Status Set assigned to domain and host
objects.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType attribute enumeration with the values:
CLIENT- The Status Set is a Client Status Set.SERVER- The Status Set is a Server Status Set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the "statusSet" local namestatic final StringConstant for the phase qualified name (prefix and local name)static final StringXML element name for the status set assigned elementstatic final StringXML element name for the status set authentication token used elementstatic final StringXML element name for the status set inherited elementstatic final StringXML element name for the status set name elementstatic final StringXML element name for the status set type element -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, where the required attributes must be set prior to callingencode(Document).EPPStatusSet(String aName, EPPStatusSet.Type aType) Constructor forEPPStatusSetthat takes the required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a status to the list of statuses.clone()CloneEPPStatusSetinstance.voidDecode theEPPStatusSetelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPStatusSetinstance.booleanimplements a deepEPPStatusSetcompare.Gets an OPTIONAL date and time that the Status Set was assigned to the object.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.Gets an OPTIONAL list of zero or more Status Values mapped to the Status Set.getType()Gets whether the Status Set is a Client Status Set with a value of "client" or the Status Set is a Server Status Set with a value of "server".booleanAre the statuses defined?booleanGets an OPTIONAL boolean with a default value of "true" that indicates whether the Status Set is assigned to the EPP object.booleanGets the OPTIONAL boolean with a default value of "false" that indicates whether the Status Set uses the Authentication Token.booleanGets an OPTIONAL boolean with a default value of "false" that indicates whether the Status Set is inherited from the parent object (domain name), in the case of the EPP Host object in [RFC5732], and is inherited by the child objects (hosts), in the case of the EPP Domain Name object in [RFC5731].voidsetAssigned(boolean aAssigned) Sets An OPTIONAL boolean with a default value of "true" that indicates whether the Status Set is assigned to the EPP object.voidsetAuthTokenUsed(boolean aAuthTokenUsed) Sets the OPTIONAL boolean with a default value of "false" that indicates whether the Status Set uses the Authentication Token.voidsetCreatedDate(Date aCreatedDate) Sets an OPTIONAL date and time that the Status Set was assigned to the object.voidsetInherited(boolean inherited) Sets an OPTIONAL boolean with a default value of "false" that indicates whether the Status Set is inherited from the parent object (domain name), in the case of the EPP Host object in [RFC5732], and is inherited by the child objects (hosts), in the case of the EPP Domain Name object in [RFC5731].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.voidsetStatuses(List<String> aStatuses) Sets an OPTIONAL list of zero or more Status Values mapped to the Status Set.voidsetType(EPPStatusSet.Type aType) Sets whether the Status Set is a Client Status Set with a value of "client" or the Status Set is a Server Status Set with a value of "server".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:
-
ELM_STATUSSET_NAME
XML element name for the status set name element- See Also:
-
ELM_STATUSSET_TYPE
XML element name for the status set type element- See Also:
-
ELM_STATUSSET_AUTHTOKEN_USED
XML element name for the status set authentication token used element- See Also:
-
ELM_STATUSSET_INHERITED
XML element name for the status set inherited element- See Also:
-
ELM_STATUSSET_ASSIGNED
XML element name for the status set assigned element- 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.aType- Whether the Status Set is a Client Status Set with a value of "client" or the Status Set is a Server Status Set with a value of "server"
-
-
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
-
getType
Gets whether the Status Set is a Client Status Set with a value of "client" or the Status Set is a Server Status Set with a value of "server".- Returns:
- the type of the Status Set
-
setType
Sets whether the Status Set is a Client Status Set with a value of "client" or the Status Set is a Server Status Set with a value of "server".- Parameters:
aType- the type of the Status Set
-
isAuthTokenUsed
public boolean isAuthTokenUsed()Gets the OPTIONAL boolean with a default value of "false" that indicates whether the Status Set uses the Authentication Token.- Returns:
- the authentication token used boolean value
-
setAuthTokenUsed
public void setAuthTokenUsed(boolean aAuthTokenUsed) Sets the OPTIONAL boolean with a default value of "false" that indicates whether the Status Set uses the Authentication Token.- Parameters:
aAuthTokenUsed- the authentication token used boolean value
-
isInherited
public boolean isInherited()Gets an OPTIONAL boolean with a default value of "false" that indicates whether the Status Set is inherited from the parent object (domain name), in the case of the EPP Host object in [RFC5732], and is inherited by the child objects (hosts), in the case of the EPP Domain Name object in [RFC5731].- Returns:
- The inherited boolean value
-
setInherited
public void setInherited(boolean inherited) Sets an OPTIONAL boolean with a default value of "false" that indicates whether the Status Set is inherited from the parent object (domain name), in the case of the EPP Host object in [RFC5732], and is inherited by the child objects (hosts), in the case of the EPP Domain Name object in [RFC5731].- Parameters:
inherited- The inherited boolean to set
-
isAssigned
public boolean isAssigned()Gets an OPTIONAL boolean with a default value of "true" that indicates whether the Status Set is assigned to the EPP object.- Returns:
- The assigned boolean value
-
setAssigned
public void setAssigned(boolean aAssigned) Sets An OPTIONAL boolean with a default value of "true" that indicates whether the Status Set is assigned to the EPP object.- Parameters:
aAssigned- The assigned boolean to set.
-
getCreatedDate
Gets an OPTIONAL date and time that the Status Set was assigned to the object.- Returns:
- The created date if set; {
nullotherwise.
-
setCreatedDate
Sets an OPTIONAL date and time that the Status Set was assigned to the object.- Parameters:
aCreatedDate- The created date to set. Set tonullto unset.
-
hasStatuses
public boolean hasStatuses()Are the statuses defined?- Returns:
trueif the statuses are defined;falseotherwise.
-
getStatuses
Gets an OPTIONAL list of zero or more Status Values mapped to the Status Set.- Returns:
- List of Status Values if defined;
nullotherwise.
-
addStatus
Adds a status to the list of statuses.- Parameters:
aStatus- The status to add.
-
setStatuses
Sets an OPTIONAL list of zero or more Status Values mapped to the Status Set.- Parameters:
aStatuses- The statuses to set. Set tonullto unset.
-
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.
-
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.
-