org.example.azapi.constants
Enum AzDataTypeIdRfc822Name
java.lang.Object
java.lang.Enum<AzDataTypeIdRfc822Name>
org.example.azapi.constants.AzDataTypeIdRfc822Name
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AzDataTypeIdRfc822Name>, AzDataTypeId
public enum AzDataTypeIdRfc822Name
- extends java.lang.Enum<AzDataTypeIdRfc822Name>
- implements AzDataTypeId
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AZ_DATATYPE_ID_RFC822NAME
public static final AzDataTypeIdRfc822Name AZ_DATATYPE_ID_RFC822NAME
- XACML DataType: urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.
The “urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name” primitive type
represents an electronic mail address. The valid syntax for such a
name is described in IETF RFC 2821, Section 4.1.2, Command Argument
Syntax, under the term "Mailbox".
From rfc 2821:
Domain = (sub-domain 1*("." sub-domain)) / address-literal
sub-domain = Let-dig [Ldh-str]
address-literal = "[" IPv4-address-literal /
IPv6-address-literal /
General-address-literal "]"
Mailbox = Local-part "@" Domain
Local-part = Dot-string / Quoted-string
Dot-string = Atom *("." Atom)
Atom = 1*atext
Quoted-string = DQUOTE *qcontent DQUOTE
String = Atom / Quoted-string
values
public static AzDataTypeIdRfc822Name[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AzDataTypeIdRfc822Name c : AzDataTypeIdRfc822Name.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AzDataTypeIdRfc822Name valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<AzDataTypeIdRfc822Name>