Package com.verisign.epp.codec.registry
Class EPPRegistryFields
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryFields
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class that defines the management of related fields.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRequired attribute type name that should have a value of eitherTYPE_SHAREDorTYPE_SYNC.static final StringConstant for the phase local namestatic final StringConstant for the qualified name (prefix and local name)static final StringConstant for the related zone fields being shared, where there is one set of related fields.static final StringConstant for the related zone fields required to be synchronized by registry policy. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryFields(String aType, List<String> aFields) CreateEPPRegistryFieldsinstance with required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a field to the list of fields.clone()CloneEPPRegistryFields.voidDecode theEPPRegistryFieldselement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryFieldsinstance.booleanimplements a deepEPPRegistryFieldscompare.Gets the related field names.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the related fields type, which should be eitherTYPE_SHAREDorTYPE_SYNC.voidSets the related field names.voidSets the related fields type, which should be eitherTYPE_SHAREDorTYPE_SYNC.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_SHARED
Constant for the related zone fields being shared, where there is one set of related fields. Updating a field in one related zone results in updating the field value across all of the related zones.- See Also:
-
TYPE_SYNC
Constant for the related zone fields required to be synchronized by registry policy. Updating a field in one related zone does not result in updating the field across all of the related zones.- See Also:
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the qualified name (prefix and local name)- See Also:
-
ATTR_TYPE
Required attribute type name that should have a value of eitherTYPE_SHAREDorTYPE_SYNC.- See Also:
-
-
Constructor Details
-
EPPRegistryFields
public EPPRegistryFields()Default constructor. The type value MUST be set using thesetType(String)method and the fields MUST be set usingsetFields(List)oraddField(String). -
EPPRegistryFields
CreateEPPRegistryFieldsinstance with required attributes.- Parameters:
aType- Type of related fields with eitherTYPE_SHAREDorTYPE_SYNC.aFields- List of related fields.
-
-
Method Details
-
getType
Gets the related fields type, which should be eitherTYPE_SHAREDorTYPE_SYNC.- Returns:
TYPE_SHAREDorTYPE_SYNCif defined;nullotherwise.
-
setType
Sets the related fields type, which should be eitherTYPE_SHAREDorTYPE_SYNC.- Parameters:
aType- the type, which should be eitherTYPE_SHAREDorTYPE_SYNC
-
getFields
Gets the related field names.- Returns:
- List of related field names.
-
setFields
Sets the related field names.- Parameters:
aFields- The list of related field names.
-
addField
Adds a field to the list of fields.- Parameters:
aField- Field to add to the list of fields.
-
clone
CloneEPPRegistryFields.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryFields - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPRegistryFieldselement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPRegistryFieldsfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryFieldsinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPRegistryFieldsinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryFieldsinstance.
-
equals
implements a deepEPPRegistryFieldscompare. -
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.
-