public class EPPSecDNSExtUpdate extends java.lang.Object implements EPPCodecComponent
Title: EPP 1.0 secDNS
Description: secDNS Extension to the EPP SDK
Copyright: Copyright (c) 2010
Company: VeriSign
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_ADD
Element tag name for the add
|
static java.lang.String |
ELM_CHG
Element tag name for the chg
|
static java.lang.String |
ELM_MAX_SIG_LIFE
The element tag name for maxSigLife
|
static java.lang.String |
ELM_NAME
Element tag name for the update
|
static java.lang.String |
ELM_REM
Element tag name for the rem
|
static int |
MAX_MAX_SIG_LIFE
Maximum maxSigLife value
|
static int |
MIN_MAX_SIG_LIFE
Minimum maxSigLife value
|
static int |
UNSPEC_MAX_SIG_LIFE
Unspecified maxSigLife value
|
Constructor and Description |
---|
EPPSecDNSExtUpdate()
Instantiate a new instance of EPPSecDNSExtUpdate
|
Modifier and Type | Method and Description |
---|---|
void |
appendAddDsData(EPPSecDNSExtDsData aDsData)
Appends to the
List of DS Data
EPPSecDNSExtDsData instances to add. |
void |
appendAddKeyData(EPPSecDNSExtKeyData aKeyData)
Appends to the
List of Key Data
EPPSecDNSExtKeyData instances to add. |
void |
appendRemDsData(EPPSecDNSExtDsData aDsData)
Appends to the
List of DS Data
EPPSecDNSExtDsData instances to remove. |
void |
appendRemKeyData(EPPSecDNSExtKeyData aKeyData)
Appends to the
List of Key Data
EPPSecDNSExtKeyData instances to remove. |
java.lang.Object |
clone()
Clone
EPPSecDNSExtUpdate . |
void |
decode(org.w3c.dom.Element aElement)
Populate the data of this instance with the data stored in the given
Element of the DOM tree
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Append all data from this secDNS update to the given DOM Document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPSecDNSExtUpdate compare. |
java.util.List |
getAddDsData()
Gets the dsData add list.
|
java.util.List |
getAddKeyData()
Gets the keyData add list.
|
int |
getMaxSigLife()
Get secDNS:maxSigLife value
|
java.lang.String |
getNamespace()
The namespace associated with this secDNS update.
|
java.util.List |
getRemDsData()
Gets the dsData remove list.
|
java.util.List |
getRemKeyData()
Gets the keyData remove list.
|
boolean |
hasAddDsData()
Is there dsData contained in the dsData add list?
|
boolean |
hasAddKeyData()
Is there keyData contained in the keyData add list?
|
boolean |
hasChg()
Is there are change (chg) element included in the update.
|
boolean |
hasMaxSigLife()
Does secDNS:chg include optional secDNS:maxSigLife?
|
boolean |
hasRemDsData()
Is there dsData contained in the dsData remove list?
|
boolean |
hasRemKeyData()
Is there keyData contained in the keyData remove list?
|
boolean |
isRemAllData()
Remove all DS / Key Data?
|
boolean |
isUrgent()
Is the update request urgent?
|
void |
setAddDsData(java.util.List aAddDsData)
Sets the
List of DS Data EPPSecDNSExtDsData
instances to add. |
void |
setAddKeyData(java.util.List aAddKeyData)
Sets the
List of Key Data EPPSecDNSExtKeyData
instances to add. |
void |
setMaxSigLife(int maxSigLife)
Set secDNS:maxSigLife value
|
void |
setRemAllData(boolean aRemAllData)
Sets the flag for removing all DS / Key Data.
|
void |
setRemDsData(java.util.List aRemDsData)
Sets the
List of DS Data EPPSecDNSExtDsData
instances to remove. |
void |
setRemKeyData(java.util.List aRemKeyData)
Sets the
List of Key Data EPPSecDNSExtKeyData
instances to remove. |
void |
setUrgent(boolean urgent)
Sets the urgent attribute.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final int UNSPEC_MAX_SIG_LIFE
public static final int MIN_MAX_SIG_LIFE
public static final int MAX_MAX_SIG_LIFE
public static final java.lang.String ELM_NAME
public static final java.lang.String ELM_ADD
public static final java.lang.String ELM_CHG
public static final java.lang.String ELM_REM
public static final java.lang.String ELM_MAX_SIG_LIFE
public EPPSecDNSExtUpdate()
public java.lang.String getNamespace()
getNamespace
in interface EPPCodecComponent
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- The DOM Document to append data toElement
EPPEncodeException
- Thrown when errors occur during the encode attempt or if the
instance is invalid.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- The root element of the report fragment of XMLEPPDecodeException
- Thrown if any errors occur during decoding.public boolean equals(java.lang.Object aObject)
EPPSecDNSExtUpdate
compare.equals
in class java.lang.Object
aObject
- EPPSecDNSExtUpdate
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPSecDNSExtUpdate
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPSecDNSExtUpdate
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean hasAddDsData()
true
if add list of EPPSecDNSExtDsData
is not null
and not empty; false
otherwise.public java.util.List getAddDsData()
List
of dsData EPPSecDNSExtDsData
instances if defined; null
otherwise.public void setAddDsData(java.util.List aAddDsData)
List
of DS Data EPPSecDNSExtDsData
instances to add.aAddDsData
- List
of EPPSecDNSExtDsData
instancespublic void appendAddDsData(EPPSecDNSExtDsData aDsData)
List
of DS Data
EPPSecDNSExtDsData
instances to add.aDsData
- EPPSecDNSExtDsData
instancepublic boolean hasRemDsData()
true
if remove list of
EPPSecDNSExtDsData
is not null
and not
empty; false
otherwise.public java.util.List getRemDsData()
List
of dsData EPPSecDNSExtDsData
instances if defined; null
otherwise.public void setRemDsData(java.util.List aRemDsData)
List
of DS Data EPPSecDNSExtDsData
instances to remove.aRemDsData
- List
of EPPSecDNSExtDsData
instancespublic void appendRemDsData(EPPSecDNSExtDsData aDsData)
List
of DS Data
EPPSecDNSExtDsData
instances to remove.aDsData
- EPPSecDNSExtDsData
instancepublic void setRemAllData(boolean aRemAllData)
aRemAllData
- true
to remove all DS / Key Data;
false
otherwise.public boolean isRemAllData()
true
to remove all DS / Key Data; false
otherwise.public boolean hasAddKeyData()
true
if add list of EPPSecDNSExtKeyData
is not null
and not empty; false
otherwise.public java.util.List getAddKeyData()
List
of keyData EPPSecDNSExtKeyData
instances if defined; null
otherwise.public void setAddKeyData(java.util.List aAddKeyData)
List
of Key Data EPPSecDNSExtKeyData
instances to add.aAddKeyData
- List
of EPPSecDNSExtKeyData
instancespublic void appendAddKeyData(EPPSecDNSExtKeyData aKeyData)
List
of Key Data
EPPSecDNSExtKeyData
instances to add.aKeyData
- EPPSecDNSExtKeyData
instancepublic boolean hasRemKeyData()
true
if remove list of
EPPSecDNSExtKeyData
is not null
and not
empty; false
otherwise.public java.util.List getRemKeyData()
List
of dsData EPPSecDNSExtKeyData
instances if defined; null
otherwise.public void setRemKeyData(java.util.List aRemKeyData)
List
of Key Data EPPSecDNSExtKeyData
instances to remove.aRemKeyData
- List
of EPPSecDNSExtKeyData
instancespublic void appendRemKeyData(EPPSecDNSExtKeyData aKeyData)
List
of Key Data
EPPSecDNSExtKeyData
instances to remove.aKeyData
- EPPSecDNSExtKeyData
instancepublic boolean isUrgent()
true
if the client has asked the server
operator to process the update command with a high priority;
false
otherwise.public void setUrgent(boolean urgent)
urgent
- The urgent value to set.public int getMaxSigLife()
int
value representing secDNS:maxSigLifehasMaxSigLife()
,
UNSPEC_MAX_SIG_LIFE
public void setMaxSigLife(int maxSigLife)
maxSigLife
- an int
value representing secDNS:maxSigLifepublic boolean hasMaxSigLife()
UNSPEC_MAX_SIG_LIFE
public boolean hasChg()
true
if a change element is defined;
false
otherwise.public 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.