Package com.verisign.epp.codec.registry
Class EPPRegistryRelated
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryRelated
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryRelated extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the related root element local name.static java.lang.StringELM_NAMEConstant for the related root element name.
-
Constructor Summary
Constructors Constructor Description EPPRegistryRelated()Default constructor with an empty list of related zone members.EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers)Constructor forEPPRegistryRelatedthat takes the required members field.EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers, EPPRegistryFields aFields)Constructor forEPPRegistryRelatedthat takes the required members field and the optional fields field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMember(EPPRegistryZoneMember aMember)Adds a zone member to the list of related zone members.java.lang.Objectclone()CloneEPPRegistryRelated.voiddecode(org.w3c.dom.Element aElement)Decode the DOM element to theEPPRegistryRelated.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode theEPPRegistryRelatedto a DOM Elementbooleanequals(java.lang.Object aObject)implements a deepEPPRegistryRelatedcompare.EPPRegistryFieldsgetFields()Gets the related fields definition.java.util.List<EPPRegistryZoneMember>getMembers()Gets the related zone members.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasFields()Are fields defined?voidsetFields(EPPRegistryFields aFields)Sets the related fields definition.voidsetMembers(java.util.List<EPPRegistryZoneMember> aMembers)Sets the related zone members.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the related root element local name.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the related root element name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryRelated
public EPPRegistryRelated()
Default constructor with an empty list of related zone members.
-
EPPRegistryRelated
public EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers)
Constructor forEPPRegistryRelatedthat takes the required members field.- Parameters:
aMembers- Zone members list.
-
EPPRegistryRelated
public EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers, EPPRegistryFields aFields)
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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryRelated.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryRelated - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryRelatedcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryRelatedinstance to compare with- Returns:
trueif equalfalseotherwise
-
getFields
public EPPRegistryFields getFields()
Gets the related fields definition.- Returns:
- Related fields if defined;
nullotherwise.
-
setFields
public void setFields(EPPRegistryFields aFields)
Sets the related fields definition.- Parameters:
aFields- Related fields
-
hasFields
public boolean hasFields()
Are fields defined?- Returns:
trueif fields are defined;falseotherwise.
-
getMembers
public java.util.List<EPPRegistryZoneMember> getMembers()
Gets the related zone members.- Returns:
- Related zone members if defined;
nullotherwise.
-
setMembers
public void setMembers(java.util.List<EPPRegistryZoneMember> aMembers)
Sets the related zone members.- Parameters:
aMembers- Related zone members
-
addMember
public void addMember(EPPRegistryZoneMember aMember)
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
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.
-
-