Enum XacmlDatatypeId
- java.lang.Object
-
- java.lang.Enum<XacmlDatatypeId>
-
- org.ow2.authzforce.xacml.identifiers.XacmlDatatypeId
-
- All Implemented Interfaces:
Serializable
,Comparable<XacmlDatatypeId>
public enum XacmlDatatypeId extends Enum<XacmlDatatypeId>
XACML Standard Datatypes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_URI
BASE64_BINARY
BOOLEAN
DATE
DATETIME
DAYTIME_DURATION
DNS_NAME
DOUBLE
HEX_BINARY
INTEGER
IP_ADDRESS
RFC822_NAME
STRING
TIME
X500_NAME
XPATH_EXPRESSION
YEARMONTH_DURATION
-
Field Summary
Fields Modifier and Type Field Description static String
XML_SCHEMA_URI_PREFIX
Prefix of URI of XML schema built-in datatypes (used in XACML), up to the '#' included: "http://www.w3.org/2001/XMLSchema#"static int
XML_SCHEMA_URI_PREFIX_LENGTH
Length ofXML_SCHEMA_URI_PREFIX
, used for extracting suffix from datatypes in order to create XACML function names, logging types of data, etc.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XacmlDatatypeId
fromValue(String datatypeURI)
Get datatype enum constant from datatype URIString
value()
Get datatype URIstatic XacmlDatatypeId
valueOf(String name)
Returns the enum constant of this type with the specified name.static XacmlDatatypeId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final XacmlDatatypeId STRING
-
BOOLEAN
public static final XacmlDatatypeId BOOLEAN
-
INTEGER
public static final XacmlDatatypeId INTEGER
-
DOUBLE
public static final XacmlDatatypeId DOUBLE
-
TIME
public static final XacmlDatatypeId TIME
-
DATE
public static final XacmlDatatypeId DATE
-
DATETIME
public static final XacmlDatatypeId DATETIME
-
DAYTIME_DURATION
public static final XacmlDatatypeId DAYTIME_DURATION
-
YEARMONTH_DURATION
public static final XacmlDatatypeId YEARMONTH_DURATION
-
ANY_URI
public static final XacmlDatatypeId ANY_URI
-
HEX_BINARY
public static final XacmlDatatypeId HEX_BINARY
-
BASE64_BINARY
public static final XacmlDatatypeId BASE64_BINARY
-
RFC822_NAME
public static final XacmlDatatypeId RFC822_NAME
-
X500_NAME
public static final XacmlDatatypeId X500_NAME
-
IP_ADDRESS
public static final XacmlDatatypeId IP_ADDRESS
-
DNS_NAME
public static final XacmlDatatypeId DNS_NAME
-
XPATH_EXPRESSION
public static final XacmlDatatypeId XPATH_EXPRESSION
-
-
Field Detail
-
XML_SCHEMA_URI_PREFIX
public static final String XML_SCHEMA_URI_PREFIX
Prefix of URI of XML schema built-in datatypes (used in XACML), up to the '#' included: "http://www.w3.org/2001/XMLSchema#"- See Also:
- Constant Field Values
-
XML_SCHEMA_URI_PREFIX_LENGTH
public static final int XML_SCHEMA_URI_PREFIX_LENGTH
Length ofXML_SCHEMA_URI_PREFIX
, used for extracting suffix from datatypes in order to create XACML function names, logging types of data, etc.
-
-
Method Detail
-
values
public static XacmlDatatypeId[] 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 (XacmlDatatypeId c : XacmlDatatypeId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XacmlDatatypeId valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
Get datatype URI- Returns:
- datatype URI
-
fromValue
public static XacmlDatatypeId fromValue(String datatypeURI)
Get datatype enum constant from datatype URI- Parameters:
datatypeURI
- datatype idenfifier (URI)- Returns:
- Datatype enum
-
-