Class EPPRelatedDomainExtField
java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtField
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPCodecComponent that encodes and decodes a <relDom:field> tag
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPRelatedDomainExtFielddefault constructorEPPRelatedDomainExtField(String aFieldName, boolean aInSync) EPPRelatedDomainExtFieldconstructor that accepts the name of the field and the boolean inSync attribute. -
Method Summary
Modifier and TypeMethodDescriptionclone()A deep clone of the EPPRelatedDomainExtFieldvoidPopulate the data of this instance with the data stored in the given Element of the DOM treeEncode a DOM Element tree from the attributes of the EPPRelatedDomainExtField instance.booleanimplements a deepEPPRelatedDomainExtFieldcompare.booleanReturns the inSync attributegetName()Returns the name of the filedReturns the XML namespace associated with theEPPCodecComponent.voidsetInSync(boolean aInSync) Sets inSync attributevoidSets aName value to name attributetoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPRelatedDomainExtField
public EPPRelatedDomainExtField()EPPRelatedDomainExtFielddefault constructor -
EPPRelatedDomainExtField
EPPRelatedDomainExtFieldconstructor that accepts the name of the field and the boolean inSync attribute.- Parameters:
aFieldName- Name of the fieldaInSync- Boolean attribute that defines the field is synchronized across all of the related domains
-
-
Method Details
-
clone
A deep clone of the EPPRelatedDomainExtField- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception- See Also:
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the report fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
encode
Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtField instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPDomainPeriod instance.
- Throws:
EPPEncodeException- - Unable to encode EPPDomainPeriod instance.
-
equals
implements a deepEPPRelatedDomainExtFieldcompare. -
getInSync
public boolean getInSync()Returns the inSync attribute- Returns:
- the inSync attribute
-
getName
Returns the name of the filed- Returns:
- the name of the field
-
setInSync
public void setInSync(boolean aInSync) Sets inSync attribute- Parameters:
aInSync- the inSync attribute to set
-
setName
Sets aName value to name attribute- Parameters:
aName- the name of the field to set
-
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.
-