public class EPPLoginSecUserAgent extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPLoginSecUserAgent . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPLoginSecUserAgent . |
Constructor and Description |
---|
EPPLoginSecUserAgent()
Default constructor for
EPPLoginSecUserAgent . |
EPPLoginSecUserAgent(java.lang.String aApp,
java.lang.String aTech,
java.lang.String aOs)
Constructor for
EPPLoginSecUserAgent that sets all
attributes. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone an
EPPCodecComponent instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPLoginSecUserAgent with this
instance. |
java.lang.String |
getApp()
Gets the name of the client application software.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getOs()
Gets the client operating system being used.
|
java.lang.String |
getTech()
Gets the technology used for the client software.
|
boolean |
hasApp()
Is the name of the client application software set?
|
boolean |
hasOs()
Is the client operating system set?
|
boolean |
hasTech()
Is the technology used for the client software set?
|
void |
setApp(java.lang.String aApp)
Sets the name of the client application software.
|
void |
setOs(java.lang.String aOs)
Sets the client operating system being used.
|
void |
setTech(java.lang.String aTech)
Sets the technology used for the client software.
|
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
EPPLoginSecUserAgent
.public static final java.lang.String ELM_NAME
EPPLoginSecUserAgent
.public EPPLoginSecUserAgent()
EPPLoginSecUserAgent
.public EPPLoginSecUserAgent(java.lang.String aApp, java.lang.String aTech, java.lang.String aOs)
EPPLoginSecUserAgent
that sets all
attributes.aApp
- OPTIONAL name of the client application software with version if
available, such as the name of the client SDK "EPP SDK 1.0.0".
An example is "EPP SDK 1.0.0". Set to null
if undefined.aTech
- OPTIONAL technology used for the client software with version if
available, such as "Java 11.0.2". Set to null
if
undefined.aOs
- OPTIONAL operating system used, such as "x86_64 Mac OS X 10.21".
Set to null
if undefined.public boolean hasApp()
true
if the name of the client application software
is defined; false
otherwise.public java.lang.String getApp()
null
otherwise.public void setApp(java.lang.String aApp)
aApp
- Name of the client application software with version if
available, such as the name of the client SDK being used. An
example is "EPP SDK 1.0.0". Set to null
if undefined.public boolean hasTech()
true
if the technology of the client software is
defined; false
otherwise.public java.lang.String getTech()
null
otherwise.public void setTech(java.lang.String aTech)
aTech
- Technology used for the client software, such as "Java 11.0.2".
Set to null
if undefined.public boolean hasOs()
true
if the client operating system is defined;
false
otherwise.public java.lang.String getOs()
null
otherwise.public void setOs(java.lang.String aOs)
aOs
- Name of the client operating system, such as "x86_64 Mac OS X
10.21". Set to null
if undefined.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factoryEPPEncodeException
- Error encoding EPPLoginSecUserAgent
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is used
to traverse the DOM nodes for instance attribute values.decode
in interface EPPCodecComponent
aElement
- Element
to decodeEPPDecodeException
- Error decoding Element
public boolean equals(java.lang.Object aObject)
EPPLoginSecUserAgent
with this
instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
instance.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPLoginSecUserAgent
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
.