public class RFC822NameAttribute extends AttributeValue
Modifier and Type | Field and Description |
---|---|
static String |
identifier
Official name of this type
|
Constructor and Description |
---|
RFC822NameAttribute(String value)
Creates a new
RFC822NameAttribute that represents the
value supplied. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like
a request or an obligation.
|
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its
value equals the value contained in this class.
|
static RFC822NameAttribute |
getInstance(Node root)
Returns a new
RFC822NameAttribute that represents
the email address at a particular DOM node. |
static RFC822NameAttribute |
getInstance(String value)
Returns a new
RFC822NameAttribute that represents
the email address value indicated by the string provided. |
String |
getValue()
Returns the name value represented by this object
|
int |
hashCode()
Returns the hashcode value used to index and compare this object with
others of the same type.
|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public static final String identifier
public RFC822NameAttribute(String value)
RFC822NameAttribute
that represents the
value supplied.value
- the email address to be representedpublic static RFC822NameAttribute getInstance(Node root)
RFC822NameAttribute
that represents
the email address at a particular DOM node.root
- the Node
that contains the desired valueRFC822NameAttribute
representing the
appropriate valuepublic static RFC822NameAttribute getInstance(String value)
RFC822NameAttribute
that represents
the email address value indicated by the string provided.value
- a string representing the desired valueRFC822NameAttribute
representing the
appropriate valuepublic String getValue()
getValue
in class AttributeValue
public boolean equals(Object o)
public int hashCode()
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valueCopyright © 2023 JBoss by Red Hat. All rights reserved.