Class EPPRegistryLanguage
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryLanguage
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryLanguage defines the supported language codes and
character code point policy.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for thevariantStrategyattribute. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPRegistryLanguage.EPPRegistryLanguage(String aCode, String aTable, EPPRegistryLanguage.VariantStrategy aVariantStrategy) EPPRegistryLanguageconstructor that takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryLanguage.voidDecode theEPPRegistryLanguageattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryLanguageinstance.booleanimplements a deepEPPRegistryLanguagecompare.getCode()Gets the required "code" attribute defines the language code for the supported language.Returns the XML namespace associated with theEPPCodecComponent.getTable()Gets the OPTIONAL language table URI that contains the set of code points for the language.Gets the OPTIONAL strategy for the handling of variants for the language.voidSets the required "code" attribute defines the language code for the supported language.voidSets the OPTIONAL language table URI that contains the set of code points for the language.voidsetVariantStrategy(EPPRegistryLanguage.VariantStrategy aVariantStrategy) Sets the OPTIONAL strategy for the handling of variants for the language.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryLanguage.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryLanguage.- See Also:
-
-
Constructor Details
-
EPPRegistryLanguage
public EPPRegistryLanguage()Default constructor forEPPRegistryLanguage. -
EPPRegistryLanguage
public EPPRegistryLanguage(String aCode, String aTable, EPPRegistryLanguage.VariantStrategy aVariantStrategy) EPPRegistryLanguageconstructor that takes all attributes.- Parameters:
aCode- The required language code that should be a ISO 639 (ISO 639-1 or ISO 639-2) value.aTable- The OPTIONAL language table URI. Set tonullif undefined.aVariantStrategy- The OPTIONAL variant strategy. Set tonullif undefined.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryLanguageinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryLanguageinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryLanguageinstance.
-
decode
Decode theEPPRegistryLanguageattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryLanguagefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryLanguage.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryLanguage - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryLanguagecompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getTable
Gets the OPTIONAL language table URI that contains the set of code points for the language.- Returns:
- The OPTIONAL langauge table URI if defined;
nullotherwise.
-
setTable
Sets the OPTIONAL language table URI that contains the set of code points for the language.- Parameters:
aTable- The OPTIONAL langauge table URI
-
getVariantStrategy
Gets the OPTIONAL strategy for the handling of variants for the language. If no <registry:variantStrategy> element is specified then variants are not supported by the language.- Returns:
- The OPTIONAL variant strategy if defined;
nullotherwise.
-
setVariantStrategy
Sets the OPTIONAL strategy for the handling of variants for the language. If no <registry:variantStrategy> element is specified then variants are not supported by the language.- Parameters:
aVariantStrategy- The OPTIONAL variant strategy
-
getCode
Gets the required "code" attribute defines the language code for the supported language. The language code SHOULD be an ISO 639 (ISO 639-1 or ISO 639-2) value.- Returns:
- The language code if defined;
nullotherwise.
-
setCode
Sets the required "code" attribute defines the language code for the supported language. The language code SHOULD be an ISO 639 (ISO 639-1 or ISO 639-2) value.- Parameters:
aCode- The language code
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-