T
- public final class Type<T> extends java.lang.Object implements java.lang.Comparable<Type<?>>
property types
.
Passing an instance of this class to PropertyState.getValue(Type)
determines
the return type of that method.Modifier and Type | Field and Description |
---|---|
static Type<java.lang.Iterable<Blob>> |
BINARIES
Map
Iterable<Blob> to array of PropertyType#BINARY |
static Type<Blob> |
BINARY
Map
Blob to PropertyType#BINARY |
static Type<java.lang.Boolean> |
BOOLEAN
Map
Boolean to PropertyType#BOOLEAN |
static Type<java.lang.Iterable<java.lang.Boolean>> |
BOOLEANS
Map
Iterable<Boolean> to array of PropertyType#BOOLEAN |
static Type<java.lang.String> |
DATE
Map
String to PropertyType#DATE |
static Type<java.lang.Iterable<java.lang.String>> |
DATES
Map
Iterable<String> to array of PropertyType#DATE |
static Type<java.math.BigDecimal> |
DECIMAL
Map
BigDecimal to PropertyType#DECIMAL |
static Type<java.lang.Iterable<java.math.BigDecimal>> |
DECIMALS
Map
Iterable<BigDecimal> to array of PropertyType#DECIMAL |
static Type<java.lang.Double> |
DOUBLE
Map
Double to PropertyType#DOUBLE |
static Type<java.lang.Iterable<java.lang.Double>> |
DOUBLES
Map
Iterable<Double> to array of PropertyType#DOUBLE |
static Type<java.lang.Long> |
LONG
Map
Long to PropertyType#LONG |
static Type<java.lang.Iterable<java.lang.Long>> |
LONGS
Map
Iterable<Long> to array of PropertyType#LONG |
static Type<java.lang.String> |
NAME
Map
String to PropertyType#STRING |
static Type<java.lang.Iterable<java.lang.String>> |
NAMES
Map
Iterable<String> to array of PropertyType#NAME |
static Type<java.lang.String> |
PATH
Map
String to PropertyType#PATH |
static Type<java.lang.Iterable<java.lang.String>> |
PATHS
Map
Iterable<String> to array of PropertyType#PATH |
static Type<java.lang.String> |
REFERENCE
Map
String to PropertyType#REFERENCE |
static Type<java.lang.Iterable<java.lang.String>> |
REFERENCES
Map
Iterable<String> to array of PropertyType#REFERENCE |
static Type<java.lang.String> |
STRING
Map
String to PropertyType#STRING |
static Type<java.lang.Iterable<java.lang.String>> |
STRINGS
Map
Iterable<String> to array of PropertyType#STRING |
static Type<java.lang.Void> |
UNDEFINED
The special "undefined" type, never encountered in normal values
|
static Type<java.lang.Iterable<java.lang.Void>> |
UNDEFINEDS
Multi-valued "undefined" type, never encountered in normal values
|
static Type<java.lang.String> |
URI
Map
String to PropertyType#URI |
static Type<java.lang.Iterable<java.lang.String>> |
URIS
Map
Iterable<String> to array of PropertyType#URI |
static Type<java.lang.String> |
WEAKREFERENCE
Map
String to PropertyType#WEAKREFERENCE |
static Type<java.lang.Iterable<java.lang.String>> |
WEAKREFERENCES
Map
Iterable<String> to array of PropertyType#WEAKREFERENCE |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Type<?> that) |
boolean |
equals(java.lang.Object other) |
static Type<?> |
fromString(java.lang.String string)
Returns the
Type with the given string representation. |
static Type<?> |
fromTag(int tag,
boolean array)
Corresponding
Type for a given type tag and array flag. |
Type<?> |
getArrayType()
Determine the array type which has this type as base type
|
Type<?> |
getBaseType()
Determine the base type of array types
|
int |
hashCode() |
boolean |
isArray()
Determine whether this is an array type
|
int |
tag()
Corresponding type tag as defined in
PropertyType . |
java.lang.String |
toString() |
public static final Type<java.lang.String> STRING
String
to PropertyType#STRING
public static final Type<java.lang.Long> LONG
Long
to PropertyType#LONG
public static final Type<java.lang.Double> DOUBLE
Double
to PropertyType#DOUBLE
public static final Type<java.lang.String> DATE
String
to PropertyType#DATE
public static final Type<java.lang.Boolean> BOOLEAN
Boolean
to PropertyType#BOOLEAN
public static final Type<java.lang.String> NAME
String
to PropertyType#STRING
public static final Type<java.lang.String> PATH
String
to PropertyType#PATH
public static final Type<java.lang.String> REFERENCE
String
to PropertyType#REFERENCE
public static final Type<java.lang.String> WEAKREFERENCE
String
to PropertyType#WEAKREFERENCE
public static final Type<java.lang.String> URI
String
to PropertyType#URI
public static final Type<java.math.BigDecimal> DECIMAL
BigDecimal
to PropertyType#DECIMAL
public static final Type<java.lang.Iterable<java.lang.String>> STRINGS
Iterable<String>
to array of PropertyType#STRING
public static final Type<java.lang.Iterable<Blob>> BINARIES
Iterable<Blob>
to array of PropertyType#BINARY
public static final Type<java.lang.Iterable<java.lang.Long>> LONGS
Iterable<Long>
to array of PropertyType#LONG
public static final Type<java.lang.Iterable<java.lang.Double>> DOUBLES
Iterable<Double>
to array of PropertyType#DOUBLE
public static final Type<java.lang.Iterable<java.lang.String>> DATES
Iterable<String>
to array of PropertyType#DATE
public static final Type<java.lang.Iterable<java.lang.Boolean>> BOOLEANS
Iterable<Boolean>
to array of PropertyType#BOOLEAN
public static final Type<java.lang.Iterable<java.lang.String>> NAMES
Iterable<String>
to array of PropertyType#NAME
public static final Type<java.lang.Iterable<java.lang.String>> PATHS
Iterable<String>
to array of PropertyType#PATH
public static final Type<java.lang.Iterable<java.lang.String>> REFERENCES
Iterable<String>
to array of PropertyType#REFERENCE
public static final Type<java.lang.Iterable<java.lang.String>> WEAKREFERENCES
Iterable<String>
to array of PropertyType#WEAKREFERENCE
public static final Type<java.lang.Iterable<java.lang.String>> URIS
Iterable<String>
to array of PropertyType#URI
public static final Type<java.lang.Iterable<java.math.BigDecimal>> DECIMALS
Iterable<BigDecimal>
to array of PropertyType#DECIMAL
public static final Type<java.lang.Void> UNDEFINED
public static final Type<java.lang.Iterable<java.lang.Void>> UNDEFINEDS
public int tag()
PropertyType
.public boolean isArray()
true
if and only if this is an array typepublic static Type<?> fromTag(int tag, boolean array)
Type
for a given type tag and array flag.tag
- type tag as defined in PropertyType
.array
- whether this is an array or notType
instancejava.lang.IllegalArgumentException
- if tag is not valid as per definition in PropertyType
.public static Type<?> fromString(java.lang.String string)
Type
with the given string representation.string
- type stringpublic Type<?> getBaseType()
java.lang.IllegalStateException
- if isArray
is false.public Type<?> getArrayType()
java.lang.IllegalStateException
- if isArray
is true.public int compareTo(Type<?> that)
compareTo
in interface java.lang.Comparable<Type<?>>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"