public class EPPRelatedDomainExtField extends java.lang.Object implements EPPCodecComponent
Title: EPP 1.0 Related Domain - field tag
Description: The EPPRelatedDomainExtField has two attributes. The inSync
boolean attribute specifies whether or not the name attribute is in
synchronized with the rest of the related domains in the family.
As XML, it is represented by a <relDom:field> element with two attributes:
name and inSync
Constructor and Description |
---|
EPPRelatedDomainExtField()
EPPRelatedDomainExtField default constructor |
EPPRelatedDomainExtField(java.lang.String aFieldName,
boolean aInSync)
EPPRelatedDomainExtField constructor that accepts the name of
the field and the boolean inSync attribute. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
A deep clone of the EPPRelatedDomainExtField
|
void |
decode(org.w3c.dom.Element aElement)
Populate the data of this instance with the data stored in the given
Element of the DOM tree
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPRelatedDomainExtField instance.
|
boolean |
equals(java.lang.Object obj)
implements a deep
EPPRelatedDomainExtField compare. |
boolean |
getInSync()
Returns the inSync attribute
|
java.lang.String |
getName()
Returns the name of the filed
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
void |
setInSync(boolean aInSync)
Sets inSync attribute
|
void |
setName(java.lang.String aName)
Sets aName value to name attribute
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public EPPRelatedDomainExtField()
EPPRelatedDomainExtField
default constructorpublic EPPRelatedDomainExtField(java.lang.String aFieldName, boolean aInSync)
EPPRelatedDomainExtField
constructor that accepts the name of
the field and the boolean inSync attribute.aFieldName
- Name of the fieldaInSync
- Boolean attribute that defines the field is synchronized across all
of the related domainspublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPCodecComponent
java.lang.CloneNotSupportedException
- standard Object.clone exceptionObject.clone()
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- The root element of the report fragment of XMLEPPDecodeException
- Thrown if any errors occur during decoding.public 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 EPPDomainPeriod instance.public boolean equals(java.lang.Object obj)
EPPRelatedDomainExtField
compare.equals
in class java.lang.Object
obj
- EPPRelatedDomainExtField
instance to compare withpublic boolean getInSync()
public java.lang.String getName()
public void setInSync(boolean aInSync)
aInSync
- the inSync attribute to setpublic void setName(java.lang.String aName)
aName
- the name of the field to setpublic 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
.