public class EPPRegistryRelated extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the related root element local name.
|
static java.lang.String |
ELM_NAME
Constant for the related root element name.
|
Constructor and Description |
---|
EPPRegistryRelated()
Default constructor with an empty list of related zone members.
|
EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers)
Constructor for
EPPRegistryRelated that takes the required
members field. |
EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers,
EPPRegistryFields aFields)
Constructor for
EPPRegistryRelated that takes the required
members field and the optional fields field. |
Modifier and Type | Method and Description |
---|---|
void |
addMember(EPPRegistryZoneMember aMember)
Adds a zone member to the list of related zone members.
|
java.lang.Object |
clone()
Clone
EPPRegistryRelated . |
void |
decode(org.w3c.dom.Element aElement)
Decode the DOM element to the
EPPRegistryRelated . |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode the
EPPRegistryRelated to a DOM Element |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryRelated compare. |
EPPRegistryFields |
getFields()
Gets the related fields definition.
|
java.util.List<EPPRegistryZoneMember> |
getMembers()
Gets the related zone members.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
boolean |
hasFields()
Are fields defined?
|
void |
setFields(EPPRegistryFields aFields)
Sets the related fields definition.
|
void |
setMembers(java.util.List<EPPRegistryZoneMember> aMembers)
Sets the related zone members.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPRegistryRelated()
public EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers)
EPPRegistryRelated
that takes the required
members field.aMembers
- Zone members list.public EPPRegistryRelated(java.util.List<EPPRegistryZoneMember> aMembers, EPPRegistryFields aFields)
EPPRegistryRelated
that takes the required
members field and the optional fields field.aMembers
- Zone members list.aFields
- Definition of how the related zone fields are managed.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryRelated
to a DOM Elementencode
in interface EPPCodecComponent
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryRelated
.decode
in interface EPPCodecComponent
aElement
- DOM Element to decode the attribute valuesEPPDecodeException
- Error decoding the DOM Elementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryRelated
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryRelated
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryRelated
compare.equals
in class java.lang.Object
aObject
- EPPRegistryRelated
instance to compare withtrue
if equal false
otherwisepublic EPPRegistryFields getFields()
null
otherwise.public void setFields(EPPRegistryFields aFields)
aFields
- Related fieldspublic boolean hasFields()
true
if fields are defined; false
otherwise.public java.util.List<EPPRegistryZoneMember> getMembers()
null
otherwise.public void setMembers(java.util.List<EPPRegistryZoneMember> aMembers)
aMembers
- Related zone memberspublic void addMember(EPPRegistryZoneMember aMember)
aMember
- Zone member to add to the list of related zone members.public java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.