public final class Rfc822NameValue extends StringParseableValue<String>
N.B.: This is more restrictive than a generic RFC 822 name.
StringParseableValue.Factory<AV extends AttributeValue>
SimpleValue.BaseFactory<AV extends AttributeValue>
value
Constructor and Description |
---|
Rfc822NameValue(javax.mail.internet.InternetAddress address)
Creates instance from InternetAddress
|
Rfc822NameValue(String value)
Creates a new
RFC822NameAttributeValue that represents the value supplied. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
match(String maybePartialRfc822Name)
Implements function 'urn:oasis:names:tc:xacml:1.0:function:rfc822Name-match'
|
String |
printXML()
Converts the internal value (accessible via
SimpleValue.getUnderlyingValue() to a valid lexical representation for XML marshalling. |
getXmlAttributes
getContent, getUnderlyingValue, toString
public Rfc822NameValue(javax.mail.internet.InternetAddress address)
address
- Java equivalent of RFC822Namepublic Rfc822NameValue(String value) throws IllegalArgumentException
RFC822NameAttributeValue
that represents the value supplied.value
- the email address to be representedIllegalArgumentException
- if value
is not a valid string representation of XACML rfc822Namepublic int hashCode()
hashCode
in class SimpleValue<String>
public boolean equals(Object obj)
equals
in class SimpleValue<String>
public boolean match(String maybePartialRfc822Name)
maybePartialRfc822Name
- used as first argument to the functionpublic String printXML()
SimpleValue.getUnderlyingValue()
to a valid lexical representation for XML marshalling. Equivalent to the 'printMethod' in JAXB 'javaType' binding
customizations. Implementations of this typically call DatatypeConverter
. This method is called by SimpleValue.getContent()
and its result cached by the same method for later use.
Therefore, no need to cache the result in the implementation.printXML
in class SimpleValue<String>
Copyright © 2012–2020. All rights reserved.