Package com.verisign.epp.codec.registry
Class EPPRegistryRelated
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryRelated
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class to hold the related zone information that include the list of related
zone members and an optional definition of the fields that are shared or that
are required to be synchronized.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with an empty list of related zone members.EPPRegistryRelated(List<EPPRegistryZoneMember> aMembers) Constructor forEPPRegistryRelatedthat takes the required members field.EPPRegistryRelated(List<EPPRegistryZoneMember> aMembers, EPPRegistryFields aFields) Constructor forEPPRegistryRelatedthat takes the required members field and the optional fields field. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMember(EPPRegistryZoneMember aMember) Adds a zone member to the list of related zone members.clone()CloneEPPRegistryRelated.voidDecode the DOM element to theEPPRegistryRelated.Encode theEPPRegistryRelatedto a DOM Elementbooleanimplements a deepEPPRegistryRelatedcompare.Gets the related fields definition.Gets the related zone members.Returns the XML namespace associated with theEPPCodecComponent.booleanAre fields defined?voidsetFields(EPPRegistryFields aFields) Sets the related fields definition.voidsetMembers(List<EPPRegistryZoneMember> aMembers) Sets the related zone members.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the related root element local name.- See Also:
-
ELM_NAME
Constant for the related root element name.- See Also:
-
-
Constructor Details
-
EPPRegistryRelated
public EPPRegistryRelated()Default constructor with an empty list of related zone members. -
EPPRegistryRelated
Constructor forEPPRegistryRelatedthat takes the required members field.- Parameters:
aMembers- Zone members list.
-
EPPRegistryRelated
Constructor forEPPRegistryRelatedthat takes the required members field and the optional fields field.- Parameters:
aMembers- Zone members list.aFields- Definition of how the related zone fields are managed.
-
-
Method Details
-
encode
Encode theEPPRegistryRelatedto a DOM Element- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
Decode the DOM element to theEPPRegistryRelated.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- DOM Element to decode the attribute values- Throws:
EPPDecodeException- Error decoding the DOM Element
-
clone
CloneEPPRegistryRelated.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryRelated - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryRelatedcompare. -
getFields
Gets the related fields definition.- Returns:
- Related fields if defined;
nullotherwise.
-
setFields
Sets the related fields definition.- Parameters:
aFields- Related fields
-
hasFields
public boolean hasFields()Are fields defined?- Returns:
trueif fields are defined;falseotherwise.
-
getMembers
Gets the related zone members.- Returns:
- Related zone members if defined;
nullotherwise.
-
setMembers
Sets the related zone members.- Parameters:
aMembers- Related zone members
-
addMember
Adds a zone member to the list of related zone members.- Parameters:
aMember- Zone member to add to the list of related zone members.
-
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.
-