public class EPPLoginSecPolicyPassword extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_LANG
XML attribute name used for the OPTIONAL description
lang
attribute. |
static java.lang.String |
DEFAULT_LANG
Default Language -- English "en"
|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPLoginSecPolicyPassword. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPLoginSecPolicyPassword. |
| Constructor and Description |
|---|
EPPLoginSecPolicyPassword()
Default constructor for
EPPLoginSecPolicyPassword. |
EPPLoginSecPolicyPassword(java.lang.String aExpression)
Constructor for
EPPLoginSecPolicyPassword that takes the required
expression attribute. |
EPPLoginSecPolicyPassword(java.lang.String aExpression,
java.lang.String aLang,
java.lang.String aDescription)
Constructor for
EPPLoginSecPolicyPassword that takes all
attributes. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPLoginSecPolicyPassword. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPLoginSecPolicyPassword 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
EPPLoginSecPolicyPassword instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPLoginSecPolicyPassword compare. |
java.lang.String |
getDescription()
Gets the status description, which is free form text describing the
rationale for the status.
|
java.lang.String |
getExpression()
Gets the login password format regular expression.
|
java.lang.String |
getLang()
Gets the language of the status description with the default set to
DEFAULT_LANG. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
boolean |
hasDescription()
Is the description defined?
|
void |
setDescription(java.lang.String aDesc)
Sets the status description, which is free form text describing the
rationale for the status.
|
void |
setExpression(java.lang.String aExpression)
Sets the login password format regular expression.
|
void |
setLang(java.lang.String aLang)
Sets the language of the status description with the default set to
DEFAULT_LANG. |
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
EPPLoginSecPolicyPassword.public static final java.lang.String ELM_NAME
EPPLoginSecPolicyPassword.public static final java.lang.String DEFAULT_LANG
public static final java.lang.String ATTR_LANG
lang
attribute.public EPPLoginSecPolicyPassword()
EPPLoginSecPolicyPassword. The expression
must be set prior to calling encode(Document).public EPPLoginSecPolicyPassword(java.lang.String aExpression)
EPPLoginSecPolicyPassword that takes the required
expression attribute.aExpression - The login password format regular expression.public EPPLoginSecPolicyPassword(java.lang.String aExpression,
java.lang.String aLang,
java.lang.String aDescription)
EPPLoginSecPolicyPassword that takes all
attributes.aExpression - The login password format regular expression.aLang - OPTIONAL language of the description with a default of
DEFAULT_LANG. Set to DEFAULT_LANG or
null to use the default value.aDescription - Description of the password policypublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPLoginSecPolicyPassword instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPLoginSecPolicyPassword instance.EPPEncodeException - - Unable to encode EPPLoginSecPolicyPassword
instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPLoginSecPolicyPassword attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPLoginSecPolicyPassword
from.EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPLoginSecPolicyPassword compare.equals in class java.lang.ObjectaObject - EPPLoginSecPolicyPassword instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPLoginSecPolicyPassword.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPLoginSecPolicyPasswordjava.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.ObjectString if successful; ERROR
otherwise.public java.lang.String getExpression()
null otherwise.public void setExpression(java.lang.String aExpression)
aExpression - the expression to setpublic java.lang.String getLang()
DEFAULT_LANG.DEFAULT_LANG.public void setLang(java.lang.String aLang)
DEFAULT_LANG.aLang - Language of description. If set to null, the value will
be set to the default of DEFAULT_LANG.public boolean hasDescription()
true if the description is defined; false
otherwise.public java.lang.String getDescription()
null otherwise.public void setDescription(java.lang.String aDesc)
aDesc - Status description. Set to null if undefined.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.