public class EPPRegistryKey extends java.lang.Object implements EPPCodecComponent
getMin()
and setMin(Integer)
to get and
set the element.getMax()
and setMax(Integer)
to get and
set the element.getAlgorithms()
and setAlgorithms(List)
to get and set
the element. Use addAlgorithm(String)
to add an algorithm
String
to an existing List
.EPPRegistryDNSSEC
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_ALGORITHM
XML Element Name of
algorithms attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryKey . |
static java.lang.String |
ELM_MAX
XML Element Name of
max attribute. |
static java.lang.String |
ELM_MIN
XML Element Name of
min attribute. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryKey . |
Constructor and Description |
---|
EPPRegistryKey()
Default constructor.
|
EPPRegistryKey(java.lang.Integer aMin,
java.lang.Integer aMax,
java.util.List<java.lang.String> aAlgorithms)
Constructs an instance with
min , max and List of
algorithms . |
EPPRegistryKey(int aMin,
int aMax,
java.util.List<java.lang.String> aAlgorithms)
Constructs an instance with
min , max and List of
algorithms . |
Modifier and Type | Method and Description |
---|---|
void |
addAlgorithm(java.lang.String aAltorithm)
Adds one algorithm to existing supported algorithms.
|
java.lang.Object |
clone()
Clone
EPPRegistryKey . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryKey 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
EPPRegistryKey instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryKey compare. |
java.util.List<java.lang.String> |
getAlgorithms()
Gets the supported algorithms.
|
java.lang.Integer |
getMax()
Gets the maximum number of keys.
|
java.lang.Integer |
getMin()
Gets the minimum number of keys.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
protected java.lang.String |
getRootName()
Gets the root element local name.
|
boolean |
hasAlgorithms()
Is the algorithms defined?
|
void |
setAlgorithms(java.util.List<java.lang.String> aAlgorithms)
Sets the supported algorithms.
|
void |
setMax(java.lang.Integer aMax)
Sets the maximum number of keys.
|
void |
setMin(java.lang.Integer aMin)
Sets the minimum number of keys.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryKey
.public static final java.lang.String ELM_NAME
EPPRegistryKey
.public static final java.lang.String ELM_MIN
min
attribute.public static final java.lang.String ELM_MAX
max
attribute.public static final java.lang.String ELM_ALGORITHM
algorithms
attribute.public EPPRegistryKey()
setMin(Integer)
and
setMax(Integer)
before calling encode(Document)
method.public EPPRegistryKey(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.String> aAlgorithms)
min
, max
and List
of
algorithms
.aMin
- minimum number of keys associated with the domain objectaMax
- maximum number of keys associated with the domain objectaAlgorithms
- supported algorithms as described in section 2.1.3 of RFC 4034public EPPRegistryKey(int aMin, int aMax, java.util.List<java.lang.String> aAlgorithms)
min
, max
and List
of
algorithms
.aMin
- minimum number of keys associated with the domain objectaMax
- maximum number of keys associated with the domain objectaAlgorithms
- supported algorithms as described in section 2.1.3 of RFC 4034public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryKey
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryKey
instance.EPPEncodeException
- - Unable to encode EPPRegistryKey
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryKey
attributes from the aElement DOM Element
tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryKey
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryKey
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryKey
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryKey
compare.equals
in class java.lang.Object
aObject
- EPPRegistryKey
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic 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.Integer getMin()
public void setMin(java.lang.Integer aMin)
aMin
- minimum number of keys associated with the domain object.public java.lang.Integer getMax()
public void setMax(java.lang.Integer aMax)
aMax
- maximum number of keys associated with the domain object.public boolean hasAlgorithms()
true
if the algorithms is defined; false
otherwise.public java.util.List<java.lang.String> getAlgorithms()
List
of supported algorithms as described in section 2.1.3
of RFC 4034public void setAlgorithms(java.util.List<java.lang.String> aAlgorithms)
aAlgorithms
- List
of supported algorithms as described in section
2.1.3 of RFC 4034public void addAlgorithm(java.lang.String aAltorithm)
aAltorithm
- supported algorithms as described in section 2.1.3 of RFC 4034public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.protected java.lang.String getRootName()