public class EPPRegistryDS 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.getAlgorithms()
and setAlgorithms(List)
to get and set
the element.getDigestTypes()
and setDigestTypes(List)
to get and set the element.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_DIGEST
XML tag name for the
digestTypeF attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryDS . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryDS . |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
Constructor and Description |
---|
EPPRegistryDS()
Constructs a new
EPPRegistryDS object. |
EPPRegistryDS(java.lang.Integer aMin,
java.lang.Integer aMax)
Constructs a new
EPPRegistryDS with a min and a max value. |
EPPRegistryDS(java.lang.Integer aMin,
java.lang.Integer aMax,
java.util.List<java.lang.Integer> aAlgorithms,
java.util.List<java.lang.Integer> aDigestTypes)
Constructs a new
EPPRegistryDS with given values. |
EPPRegistryDS(int aMin,
int aMax,
java.util.List<java.lang.Integer> aAlgorithms,
java.util.List<java.lang.Integer> aDigestTypes)
Constructs a new
EPPRegistryDS with given values. |
Modifier and Type | Method and Description |
---|---|
void |
addAlgorithm(java.lang.Integer aAlgorithm)
Adds one algorithm to existing supported algorithms.
|
void |
addDigestType(java.lang.Integer digestType)
Add one digest type to an existing list.
|
java.lang.Object |
clone()
Clone
EPPRegistryDS . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryDS 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
EPPRegistryDS
instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryDS compare. |
java.util.List<java.lang.Integer> |
getAlgorithms()
Gets the supported algorithms.
|
java.util.List<java.lang.Integer> |
getDigestTypes()
Get digest types.
|
protected java.lang.String |
getElmMax()
Gets the maximum element local name.
|
protected java.lang.String |
getElmMin()
Gets the minimum element local name.
|
protected org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
protected java.lang.String |
getRootName()
Gets the root element local name.
|
boolean |
hasAlgorithms()
Is the algorithms defined?
|
void |
setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
Sets the supported algorithms.
|
void |
setDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)
Set digest types.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
getMax, getMin, getNamespace, setMax, setMin, validateState
public static final java.lang.String ELM_LOCALNAME
EPPRegistryDS
.public static final java.lang.String ELM_NAME
EPPRegistryDS
.public static final java.lang.String ELM_ALGORITHM
algorithms
attribute.public static final java.lang.String ELM_DIGEST
digestTypeF
attribute.public EPPRegistryDS()
EPPRegistryDS
object. All attributes are set to
default. Must call EPPRegistryAbstractMinMax.setMin(Integer)
and EPPRegistryAbstractMinMax.setMax(Integer)
before calling encode(Document)
method.public EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryDS
with a min and a max value.aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain objectpublic EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
EPPRegistryDS
with given values.aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain objectaAlgorithms
- List
of algorithm String
aDigestTypes
- List
of digest type String
public EPPRegistryDS(int aMin, int aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
EPPRegistryDS
with given values.aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain objectaAlgorithms
- List
of algorithm String
aDigestTypes
- List
of digest type String
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryDS
instance.encode
in interface EPPCodecComponent
encode
in class EPPRegistryAbstractMinMax
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryDS
instance.EPPEncodeException
- - Unable to encode EPPRegistryDS
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryDS
attributes from the aElement DOM Element
tree.decode
in interface EPPCodecComponent
decode
in class EPPRegistryAbstractMinMax
aElement
- Root DOM Element to decode EPPRegistryDS
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryDS
.clone
in interface EPPCodecComponent
clone
in class EPPRegistryAbstractMinMax
EPPRegistryDS
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryDS
compare.equals
in class EPPRegistryAbstractMinMax
aObject
- EPPRegistryDS
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 EPPRegistryAbstractMinMax
String
if successful; ERROR
otherwise.public 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 5.1.2
of RFC 4034public void setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
aAlgorithms
- List
of supported algorithms as described in section
5.1.2 of RFC 4034public void addAlgorithm(java.lang.Integer aAlgorithm)
aAlgorithm
- supported algorithm as described in section 5.1.2 of RFC 4034public java.util.List<java.lang.Integer> getDigestTypes()
List
of digest type in String
public void setDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)
aDigestTypes
- List
of digest type in String
public void addDigestType(java.lang.Integer digestType)
digestType
- digest type in String
protected java.lang.String getRootName()
getRootName
in class EPPRegistryAbstractMinMax
protected java.lang.String getElmMin()
getElmMin
in class EPPRegistryAbstractMinMax
protected java.lang.String getElmMax()
getElmMax
in class EPPRegistryAbstractMinMax
protected org.apache.log4j.Logger getLogger()
Logger
to use.getLogger
in class EPPRegistryAbstractMinMax
Logger
instance to use for logging.