public class EPPRegistryKey extends EPPRegistryAbstractMinMax
EPPRegistryAbstractMinMax.getMin() and EPPRegistryAbstractMinMax.setMin(Integer) to get and
set the element.EPPRegistryAbstractMinMax.getMax() and EPPRegistryAbstractMinMax.setMax(Integer) to get and
set the element.getFlags() and setFlags(List) to get and set
the element. Use addFlags(Integer) to add an flags field
Integer to an existing List.getProtocols() and setProtocols(List) to get and set
the element. Use addProtocol(Integer) to add an algorithm
Integer to an existing List.getAlgorithms() and setAlgorithms(List) to get and set
the element. Use addAlgorithm(Integer) to add an algorithm
Integer to an existing List.EPPRegistryDNSSEC,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_ALGORITHM
XML Element Name of
algorithms attribute. |
static java.lang.String |
ELM_FLAGS
XML Element Name of
flags attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryKey. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryKey. |
static java.lang.String |
ELM_PROTOCOL
XML Element Name of
protocol attribute. |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH| Constructor and Description |
|---|
EPPRegistryKey()
Default constructor.
|
EPPRegistryKey(java.lang.Integer aMin,
java.lang.Integer aMax)
Constructs an instance with
min and max. |
EPPRegistryKey(java.lang.Integer aMin,
java.lang.Integer aMax,
java.util.List<java.lang.Integer> aFlags,
java.util.List<java.lang.Integer> aProtocols,
java.util.List<java.lang.Integer> aAlgorithms)
Constructs an instance with
min, max and List of
algorithms. |
EPPRegistryKey(int aMin,
int aMax,
java.util.List<java.lang.Integer> aFlags,
java.util.List<java.lang.Integer> aProtocols,
java.util.List<java.lang.Integer> aAlgorithms)
Constructs an instance with
min, max and List of
algorithms. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlgorithm(java.lang.Integer aAlgorithm)
Adds one algorithm to existing supported algorithms.
|
void |
addFlags(java.lang.Integer aFlags)
Adds one flags field to existing supported flags.
|
void |
addProtocol(java.lang.Integer aProtocol)
Adds one protocol to existing the supported protocols.
|
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.Integer> |
getAlgorithms()
Gets the supported algorithms.
|
protected java.lang.String |
getElmMax()
Gets the maximum element local name.
|
protected java.lang.String |
getElmMin()
Gets the minimum element local name.
|
java.util.List<java.lang.Integer> |
getFlags()
Gets the supported flags.
|
protected org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.util.List<java.lang.Integer> |
getProtocols()
Gets the supported protocols.
|
protected java.lang.String |
getRootName()
Gets the root element local name.
|
boolean |
hasAlgorithms()
Is the algorithms defined?
|
boolean |
hasFlags()
Is the flags defined?
|
boolean |
hasProtocols()
Is the protocols defined?
|
void |
setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
Sets the supported algorithms.
|
void |
setFlags(java.util.List<java.lang.Integer> aFlags)
Sets the supported flags.
|
void |
setProtocols(java.util.List<java.lang.Integer> aProtocol)
Sets the supported protocols.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
getMax, getMin, setMax, setMin, validateStatepublic static final java.lang.String ELM_LOCALNAME
EPPRegistryKey.public static final java.lang.String ELM_NAME
EPPRegistryKey.public static final java.lang.String ELM_FLAGS
flags attribute.public static final java.lang.String ELM_PROTOCOL
protocol attribute.public static final java.lang.String ELM_ALGORITHM
algorithms attribute.public EPPRegistryKey()
EPPRegistryAbstractMinMax.setMin(Integer) and
EPPRegistryAbstractMinMax.setMax(Integer) before calling encode(Document) method.public EPPRegistryKey(java.lang.Integer aMin,
java.lang.Integer aMax)
min and max.aMin - minimum number of keys associated with the domain objectaMax - maximum number of keys associated with the domain objectpublic EPPRegistryKey(java.lang.Integer aMin,
java.lang.Integer aMax,
java.util.List<java.lang.Integer> aFlags,
java.util.List<java.lang.Integer> aProtocols,
java.util.List<java.lang.Integer> 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 objectaFlags - supported flags as described in section 2.1.1 of RFC 4034aProtocols - supported protocols as described in section 2.1.2 of RFC 4034aAlgorithms - supported algorithms as described in section 2.1.3 of RFC 4034public EPPRegistryKey(int aMin,
int aMax,
java.util.List<java.lang.Integer> aFlags,
java.util.List<java.lang.Integer> aProtocols,
java.util.List<java.lang.Integer> 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 objectaFlags - supported flags as described in section 2.1.1 of RFC 4034aProtocols - supported protocols as described in section 2.1.2 of RFC 4034aAlgorithms - 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 EPPCodecComponentencode in class EPPRegistryAbstractMinMaxaDocument - 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 EPPCodecComponentdecode in class EPPRegistryAbstractMinMaxaElement - Root DOM Element to decode EPPRegistryKey from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryKey.clone in interface EPPCodecComponentclone in class EPPRegistryAbstractMinMaxEPPRegistryKeyjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryKey compare.equals in class EPPRegistryAbstractMinMaxaObject - 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 EPPRegistryAbstractMinMaxString if successful; ERROR
otherwise.public boolean hasFlags()
true if the flags is defined; false otherwise.public java.util.List<java.lang.Integer> getFlags()
List of supported flags as described in section 2.1.1 of
RFC 4034public void setFlags(java.util.List<java.lang.Integer> aFlags)
aFlags - List of supported flags as described in section 2.1.1 of
RFC 4034public void addFlags(java.lang.Integer aFlags)
aFlags - supported flags field as described in section 2.1.1 of RFC 4034public boolean hasProtocols()
true if the protocols is defined; false otherwise.public java.util.List<java.lang.Integer> getProtocols()
List of supported protocols as described in section 2.1.2
of RFC 4034public void setProtocols(java.util.List<java.lang.Integer> aProtocol)
aProtocol - List of supported protocols as described in section
2.1.2 of RFC 4034public void addProtocol(java.lang.Integer aProtocol)
aProtocol - supported protocol as described in section 2.1.2 of RFC 4034public boolean hasAlgorithms()
true if the algorithms is defined; false
otherwise.public java.util.List<java.lang.Integer> getAlgorithms()
List of supported algorithms as described in section 2.1.3
of RFC 4034public void setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
aAlgorithms - List of supported algorithms as described in section
2.1.3 of RFC 4034public void addAlgorithm(java.lang.Integer aAlgorithm)
aAlgorithm - supported algorithm as described in section 2.1.3 of RFC 4034public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentgetNamespace in class EPPRegistryAbstractMinMaxEPPCodecComponent.protected java.lang.String getRootName()
getRootName in class EPPRegistryAbstractMinMaxprotected java.lang.String getElmMin()
getElmMin in class EPPRegistryAbstractMinMaxprotected java.lang.String getElmMax()
getElmMax in class EPPRegistryAbstractMinMaxprotected org.apache.log4j.Logger getLogger()
Logger to use.getLogger in class EPPRegistryAbstractMinMaxLogger instance to use for logging.