public class EPPTransId extends java.lang.Object implements EPPCodecComponent
getClientTransId
and
setClientTransId
to get and set the element.
hasClientTransId
can be used to determine if the element exists.
getServerTransId
and
setServerTransId
to get and set the element.Modifier and Type | Field and Description |
---|---|
static int |
MAX_TRANSID_LEN
Maximum transaction id length.
|
static int |
MIN_TRANSID_LEN
Minimum transaction id length.
|
Constructor and Description |
---|
EPPTransId()
Allocates a new
EPPTransId with null default
attribute values. |
EPPTransId(java.lang.String aServerTransId)
Allocates a new
EPPTransId with just a server transaction id
specified. |
EPPTransId(java.lang.String aClientTransId,
java.lang.String aServerTransId)
Allocates a new
EPPTransId with both the client transaction
id and the server transaction id specified. |
EPPTransId(java.lang.String aRootNS,
java.lang.String aRootName,
java.lang.String aClientTransId,
java.lang.String aServerTransId)
Allocates a new
EPPTransId with both the client transaction
id and the server transaction id specified along with a specific root tag
name. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPTransId . |
void |
decode(org.w3c.dom.Element aElement)
decode
EPPTransId from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode
EPPTransId into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPTransId compare. |
java.lang.String |
getClientTransId()
Gets the client specified transaction id.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getRootName()
Gets the root tag such as domain or host specific tags.
|
java.lang.String |
getRootNS()
Gets the root element XML namespace URI.
|
java.lang.String |
getServerTransId()
Gets the server generated transaction id.
|
void |
setClientTransId(java.lang.String aClientTransId)
Sets the client specified transaction id.
|
void |
setRootName(java.lang.String aRootNS,
java.lang.String aRootName)
Sets the root tag such as domain or host specific tags.
|
void |
setServerTransId(java.lang.String aServerTransId)
Sets the server generated transaction id.
|
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 MIN_TRANSID_LEN
public static final int MAX_TRANSID_LEN
public EPPTransId()
EPPTransId
with null
default
attribute values. The server transaction id must be set before calling
encode
.public EPPTransId(java.lang.String aServerTransId)
EPPTransId
with just a server transaction id
specified.aServerTransId
- Server generated transaction id that uniquely identifies the
transaction.public EPPTransId(java.lang.String aClientTransId, java.lang.String aServerTransId)
EPPTransId
with both the client transaction
id and the server transaction id specified.aClientTransId
- Client specified transaction id contained in an EPP command.aServerTransId
- Server generated transaction id that uniquely identifies the
transaction.public EPPTransId(java.lang.String aRootNS, java.lang.String aRootName, java.lang.String aClientTransId, java.lang.String aServerTransId)
EPPTransId
with both the client transaction
id and the server transaction id specified along with a specific root tag
name.aRootNS
- Root element namespace URIaRootName
- Root element of trans id.aClientTransId
- Client specified transaction id contained in an EPP command.aServerTransId
- Server generated transaction id that uniquely identifies the
transaction.public java.lang.String getRootNS()
public java.lang.String getRootName()
ELM_NAME
.public void setRootName(java.lang.String aRootNS, java.lang.String aRootName)
aRootNS
- Namespace URI for the root tagaRootName
- Sets the root tagpublic java.lang.String getClientTransId()
String
if
defined; null
otherwise.public void setClientTransId(java.lang.String aClientTransId)
aClientTransId
- the client specified transaction id.public java.lang.String getServerTransId()
String
if
defined; null
otherwise.public void setServerTransId(java.lang.String aServerTransId)
aServerTransId
- the server generated transaction id.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPTransId
into a DOM element tree. The <trID> or
the element name set with setRootName
is creates and the
attribute nodes are appended as children.encode
in interface EPPCodecComponent
aDocument
- DOCUMENT ME!EPPEncodeException
- Error encoding the DOM element tree.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPTransId
from a DOM element tree. The
aElement
argument needs to be the "trID" element, or an
element that conforms to the XML structure of "trID".decode
in interface EPPCodecComponent
aElement
- The "trID" XML element.EPPDecodeException
- Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPTransId
compare.equals
in class java.lang.Object
aObject
- EPPTransId
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPTransId
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPTransId
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic 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.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.Copyright © VeriSign Inc. All Rights Reserved.