java.io.Serializablepublic class Type
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field | 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 | Description |
|---|---|
Type(URI type,
boolean isBag) |
Constructor that takes type as URI
|
Type(URI type,
java.lang.String shortName,
boolean isBag) |
Constructor that takes type as URI
|
Type(java.lang.String type,
java.lang.String shortName) |
Constructor that takes type URI as String.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
static Type |
findType(java.lang.String uri) |
|
URI |
getDataType() |
Returns type URI
|
static java.util.Collection<Type> |
getScalarTypes() |
|
java.lang.String |
getShortName() |
|
java.lang.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 DATE_TIME_BAG
DATE_TIME.DATE_TIMEpublic static final Type DAY_TIME_DURATION_BAG
DAY_TIME_DURATION.DAY_TIME_DURATIONpublic static final Type YEAR_MONTH_DURATION_BAG
YEAR_MONTH_DURATION.YEAR_MONTH_DURATIONpublic static final Type HEX_BINARY_BAG
HEX_BINARY.HEX_BINARYpublic static final Type BASE64_BINARY_BAG
BASE64_BINARY.BASE64_BINARYpublic static final Type RFC822_NAME_BAG
RFC822_NAME.RFC822_NAMEpublic static final Type X500_NAME_BAG
X500_NAME.X500_NAMEpublic static final Type IP_ADDRESS_BAG
IP_ADDRESS.IP_ADDRESSpublic static final Type DNS_ADDRESS_BAG
DNS_ADDRESS.DNS_ADDRESSpublic static final Type FUNCTION
<Function> element.public static final Type CHARACTER_BAG
CHARACTER.CHARACTERpublic Type(java.lang.String type,
java.lang.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 Type(URI type, java.lang.String shortName, boolean isBag)
type - Type URIisBag - true if new Type is a bag; false otherwisepublic static java.util.Collection<Type> getScalarTypes()
public static Type findType(java.lang.String uri)
public java.lang.String getShortName()
public URI getDataType() throws URISyntaxException
URISyntaxException - thrown if URI format is invalidpublic boolean isBag()
public boolean isCustom()
public java.lang.String getType()
public boolean equals(java.lang.Object o)
equals in class java.lang.Object