public class Type extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Type |
ANY_URI
Represents the XML
URI data type,
http://www.w3.org/2001/XMLSchema#anyURI. |
static Type |
ANY_URI_BAG
Represents a bag of
ANY_URI. |
static Type |
BASE64_BINARY
Represents the XML
base64 binary data type,
http://www.w3.org/2001/XMLSchema#base64Binary. |
static Type |
BASE64_BINARY_BAG
Represents a bag of
BASE64_BINARY. |
static Type |
BOOLEAN
Represents the XML
boolean data type,
http://www.w3.org/2001/XMLSchema#boolean. |
static Type |
BOOLEAN_BAG
Represents a bag of
BOOLEAN. |
static Type |
CHARACTER
Represents a one-character restriction on the XML
string data type, http://www.w3.org/2001/XMLSchema#string. |
static Type |
CHARACTER_BAG
Represents a bag of
CHARACTER. |
static Type |
CLASS
Represents a reference to an instance of
java.lang.Class
for a specific Java object. |
static Type |
CLASS_BAG
Represents a bag of
CLASS. |
static Type |
DATE
Represents the XML
date data type,
http://www.w3.org/2001/XMLSchema#date. |
static Type |
DATE_BAG
Represents a bag of
DATE. |
static Type |
DATE_TIME
Represents the XML
dateTime data type,
http://www.w3.org/2001/XMLSchema#dateTime. |
static Type |
DATE_TIME_BAG
Represents a bag of
DATE_TIME. |
static Type |
DAY_TIME_DURATION
Represents the XQuery
day-time duration
data type,
http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration. |
static Type |
DAY_TIME_DURATION_BAG
Represents a bag of
DAY_TIME_DURATION. |
static Type |
DECIMAL
Represents the XML
decimal data type,
http://www.w3.org/2001/XMLSchema#decimal. |
static Type |
DECIMAL_BAG
Represents a bag of
DECIMAL. |
static Type |
DNS_ADDRESS
Represents the XACML
DNS name data type,
urn:oasis:names:tc:xacml:1.0:data-type:dnsName. |
static Type |
DNS_ADDRESS_BAG
Represents a bag of
DNS_ADDRESS. |
static Type |
DOUBLE
Represents the XML
double data type,
http://www.w3.org/2001/XMLSchema#double. |
static Type |
DOUBLE_BAG
Represents a bag of
DOUBLE. |
static Type |
FLOAT
Represents the XML
float data type,
http://www.w3.org/2001/XMLSchema#float. |
static Type |
FLOAT_BAG
Represents a bag of
FLOAT. |
static Type |
FUNCTION
Represents the evaluation of a
<Function> element. |
static Type |
FUNCTION_BAG
Represents a bag of
FUNCTION. |
static Type |
HEX_BINARY
Represents the XML
hexadecimal binary data type,
http://www.w3.org/2001/XMLSchema#hexBinary. |
static Type |
HEX_BINARY_BAG
Represents a bag of
HEX_BINARY. |
static Type |
INTEGER
Represents the XML
integer data type,
http://www.w3.org/2001/XMLSchema#integer. |
static Type |
INTEGER_BAG
Represents a bag of
INTEGER. |
static Type |
IP_ADDRESS
Represents the XACML
IP address data type,
urn:oasis:names:tc:xacml:1.0:data-type:ipAddress. |
static Type |
IP_ADDRESS_BAG
Represents a bag of
IP_ADDRESS. |
static Type |
LONG
Represents the XML
long data type,
http://www.w3.org/2001/XMLSchema#long. |
static Type |
LONG_BAG
Represents a bag of
LONG. |
static Type |
OBJECT
Represents a reference to a Java object.
|
static Type |
OBJECT_BAG
Represents a bag of
OBJECT. |
static Type |
RFC822_NAME
Represents the XACML
RFC822 name data type,
urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name. |
static Type |
RFC822_NAME_BAG
Represents a bag of
RFC822_NAME. |
static Type |
STRING
Represents the XML
string data type,
http://www.w3.org/2001/XMLSchema#string. |
static Type |
STRING_BAG
Represents a bag of
STRING. |
static Type |
TIME
Represents the XML
time data type,
http://www.w3.org/2001/XMLSchema#time. |
static Type |
TIME_BAG
Represents a bag of
TIME. |
static Type |
X500_NAME
Represents the XACML
X500 name data type,
urn:oasis:names:tc:xacml:1.0:data-type:x500Name. |
static Type |
X500_NAME_BAG
Represents a bag of
X500_NAME. |
static Type |
YEAR_MONTH_DURATION
Represents the XQuery
year-month duration data type,
http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration. |
static Type |
YEAR_MONTH_DURATION_BAG
Represents a bag of
YEAR_MONTH_DURATION. |
| Constructor and Description |
|---|
Type(String type,
String shortName)
Constructor that takes type URI as String.
|
Type(URI type,
boolean isBag)
Constructor that takes type as URI
|
Type(URI type,
String shortName,
boolean isBag)
Constructor that takes type as URI
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Type |
findType(String uri) |
URI |
getDataType()
Returns type URI
|
static Collection<Type> |
getScalarTypes() |
String |
getShortName() |
String |
getType()
Returns type URI as a String
|
boolean |
isBag()
Checks if Type represents a bag or singleton type
|
boolean |
isCustom() |
public static final Type STRING
string data type,
http://www.w3.org/2001/XMLSchema#string.public static final Type BOOLEAN
boolean data type,
http://www.w3.org/2001/XMLSchema#boolean.public static final Type INTEGER
integer data type,
http://www.w3.org/2001/XMLSchema#integer.public static final Type DOUBLE
double data type,
http://www.w3.org/2001/XMLSchema#double.public static final Type TIME
time data type,
http://www.w3.org/2001/XMLSchema#time.public static final Type DATE
date data type,
http://www.w3.org/2001/XMLSchema#date.public static final Type DATE_TIME
dateTime data type,
http://www.w3.org/2001/XMLSchema#dateTime.public static final Type DAY_TIME_DURATION
day-time duration
data type,
http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration.public static final Type YEAR_MONTH_DURATION
year-month duration data type,
http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration.public static final Type ANY_URI
URI data type,
http://www.w3.org/2001/XMLSchema#anyURI.public static final Type HEX_BINARY
hexadecimal binary data type,
http://www.w3.org/2001/XMLSchema#hexBinary.public static final Type BASE64_BINARY
base64 binary data type,
http://www.w3.org/2001/XMLSchema#base64Binary.public static final Type RFC822_NAME
RFC822 name data type,
urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.public static final Type X500_NAME
X500 name data type,
urn:oasis:names:tc:xacml:1.0:data-type:x500Name.public static final Type IP_ADDRESS
IP address data type,
urn:oasis:names:tc:xacml:1.0:data-type:ipAddress.public static final Type DNS_ADDRESS
DNS name data type,
urn:oasis:names:tc:xacml:1.0:data-type:dnsName.public static final Type CHARACTER
string data type, http://www.w3.org/2001/XMLSchema#string.public static final Type LONG
long data type,
http://www.w3.org/2001/XMLSchema#long.public static final Type FLOAT
float data type,
http://www.w3.org/2001/XMLSchema#float.public static final Type DECIMAL
decimal data type,
http://www.w3.org/2001/XMLSchema#decimal.public static final Type OBJECT
public static final Type CLASS
java.lang.Class
for a specific Java object. Some BEA XACML functions require
this data type (for example, to invoke methods on Java objects using
the Java reflection API).
In a XACML document, you can use the following function to create
data of this type:
urn:bea.xacml:2.0:function:string-to-class.
public static final Type STRING_BAG
STRING.Type.STRINGpublic static final Type BOOLEAN_BAG
BOOLEAN.Type.BOOLEANpublic static final Type INTEGER_BAG
INTEGER.Type.INTEGERpublic static final Type DOUBLE_BAG
DOUBLE.Type.DOUBLEpublic static final Type DATE_TIME_BAG
DATE_TIME.Type.DATE_TIMEpublic static final Type DAY_TIME_DURATION_BAG
DAY_TIME_DURATION.Type.DAY_TIME_DURATIONpublic static final Type YEAR_MONTH_DURATION_BAG
YEAR_MONTH_DURATION.Type.YEAR_MONTH_DURATIONpublic static final Type ANY_URI_BAG
ANY_URI.Type.ANY_URIpublic static final Type HEX_BINARY_BAG
HEX_BINARY.Type.HEX_BINARYpublic static final Type BASE64_BINARY_BAG
BASE64_BINARY.Type.BASE64_BINARYpublic static final Type RFC822_NAME_BAG
RFC822_NAME.Type.RFC822_NAMEpublic static final Type X500_NAME_BAG
X500_NAME.Type.X500_NAMEpublic static final Type IP_ADDRESS_BAG
IP_ADDRESS.Type.IP_ADDRESSpublic static final Type DNS_ADDRESS_BAG
DNS_ADDRESS.Type.DNS_ADDRESSpublic static final Type FUNCTION
<Function> element.public static final Type FUNCTION_BAG
FUNCTION.Type.FUNCTIONpublic static final Type CHARACTER_BAG
CHARACTER.Type.CHARACTERpublic static final Type FLOAT_BAG
FLOAT.Type.FLOATpublic static final Type DECIMAL_BAG
DECIMAL.Type.DECIMALpublic static final Type OBJECT_BAG
OBJECT.Type.OBJECTpublic static final Type CLASS_BAG
CLASS.Type.CLASSpublic Type(String type, String shortName)
type - Type URI as a Stringpublic Type(URI type, boolean isBag)
type - Type URIisBag - true if new Type is a bag; false otherwisepublic static Collection<Type> getScalarTypes()
public String getShortName()
public URI getDataType() throws URISyntaxException
URISyntaxException - thrown if URI format is invalidpublic boolean isBag()
public boolean isCustom()
public String getType()