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#STRINGpublic static final Type<java.lang.Long> LONG
Long to PropertyType#LONGpublic static final Type<java.lang.Double> DOUBLE
Double to PropertyType#DOUBLEpublic static final Type<java.lang.String> DATE
String to PropertyType#DATEpublic static final Type<java.lang.Boolean> BOOLEAN
Boolean to PropertyType#BOOLEANpublic static final Type<java.lang.String> NAME
String to PropertyType#STRINGpublic static final Type<java.lang.String> PATH
String to PropertyType#PATHpublic static final Type<java.lang.String> REFERENCE
String to PropertyType#REFERENCEpublic static final Type<java.lang.String> WEAKREFERENCE
String to PropertyType#WEAKREFERENCEpublic static final Type<java.lang.String> URI
String to PropertyType#URIpublic static final Type<java.math.BigDecimal> DECIMAL
BigDecimal to PropertyType#DECIMALpublic static final Type<java.lang.Iterable<java.lang.String>> STRINGS
Iterable<String> to array of PropertyType#STRINGpublic static final Type<java.lang.Iterable<Blob>> BINARIES
Iterable<Blob> to array of PropertyType#BINARYpublic static final Type<java.lang.Iterable<java.lang.Long>> LONGS
Iterable<Long> to array of PropertyType#LONGpublic static final Type<java.lang.Iterable<java.lang.Double>> DOUBLES
Iterable<Double> to array of PropertyType#DOUBLEpublic static final Type<java.lang.Iterable<java.lang.String>> DATES
Iterable<String> to array of PropertyType#DATEpublic static final Type<java.lang.Iterable<java.lang.Boolean>> BOOLEANS
Iterable<Boolean> to array of PropertyType#BOOLEANpublic static final Type<java.lang.Iterable<java.lang.String>> NAMES
Iterable<String> to array of PropertyType#NAMEpublic static final Type<java.lang.Iterable<java.lang.String>> PATHS
Iterable<String> to array of PropertyType#PATHpublic static final Type<java.lang.Iterable<java.lang.String>> REFERENCES
Iterable<String> to array of PropertyType#REFERENCEpublic static final Type<java.lang.Iterable<java.lang.String>> WEAKREFERENCES
Iterable<String> to array of PropertyType#WEAKREFERENCEpublic static final Type<java.lang.Iterable<java.lang.String>> URIS
Iterable<String> to array of PropertyType#URIpublic static final Type<java.lang.Iterable<java.math.BigDecimal>> DECIMALS
Iterable<BigDecimal> to array of PropertyType#DECIMALpublic 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"