public class EPPRelatedDomainExtInfo extends java.lang.Object implements EPPCodecComponent
Title: EPP 1.0 Related Domain - info tag
Description: The EPPRelatedDomainExtInfo object indicates to the server to include the related domain information in the response. As XML, it is represented by a <relDom:info> element.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_DOMAIN
Constant for the type attribute that defines the use of the Domain Info
Form.
|
static java.lang.String |
TYPE_RELATED
Constant for the type attribute that defines the use of the Related Info
Form.
|
Constructor and Description |
---|
EPPRelatedDomainExtInfo()
Default constructor, where the
type is set to TYPE_DOMAIN . |
EPPRelatedDomainExtInfo(java.lang.String aType)
Constructor that takes the desired type of the extension using either the
Domain Info Form, represented by the
TYPE_DOMAIN constant,
or the Related Info Form, represented by the TYPE_RELATED
constant. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRelatedDomainExtInfo . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPRelatedDomainExtInfo attributes from the aElement DOM Element
tree.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPRelatedDomainExtInfo instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRelatedDomainExtInfo compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getType()
Gets the form type of the extension, which must be
either the
TYPE_DOMAIN constant for the Domain Info Form,
and the TYPE_RELATED constant for the Related Info Form. |
void |
setType(java.lang.String aType)
Sets the form type of the extension, which must be
either the
TYPE_DOMAIN constant for the Domain Info Form,
and the TYPE_RELATED constant for the Related Info Form. |
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static java.lang.String TYPE_DOMAIN
public static java.lang.String TYPE_RELATED
public EPPRelatedDomainExtInfo()
type
is set to TYPE_DOMAIN
.public EPPRelatedDomainExtInfo(java.lang.String aType)
TYPE_DOMAIN
constant,
or the Related Info Form, represented by the TYPE_RELATED
constant.aType
- Type of form to use which must be either the
TYPE_DOMAIN
constant for the Domain Info Form or
the TYPE_RELATED
constant for the Related Info
Form.public java.lang.String getType()
TYPE_DOMAIN
constant for the Domain Info Form,
and the TYPE_RELATED
constant for the Related Info Form.TYPE_DOMAIN
or TYPE_RELATED
.public void setType(java.lang.String aType)
TYPE_DOMAIN
constant for the Domain Info Form,
and the TYPE_RELATED
constant for the Related Info Form.aType
- Either TYPE_DOMAIN
or TYPE_RELATED
.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRelatedDomainExtInfo
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRelatedDomainExtInfo
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPRelatedDomainExtInfo from.EPPDecodeException
- Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element factory.EPPEncodeException
- - Unable to encode EPPRelatedDomainExtInfo instance.public boolean equals(java.lang.Object aObject)
EPPRelatedDomainExtInfo
compare.equals
in class java.lang.Object
aObject
- EPPRelatedDomainExtInfo
instance to compare withpublic 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
.