T - public final class Type<T> extends Object implements 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<Iterable<Blob>> |
BINARIES
Map
Iterable<Blob> to array of PropertyType.BINARY |
static Type<Blob> |
BINARY
Map
Blob to PropertyType.BINARY |
static Type<Boolean> |
BOOLEAN
Map
Boolean to PropertyType.BOOLEAN |
static Type<Iterable<Boolean>> |
BOOLEANS
Map
Iterable<Boolean> to array of PropertyType.BOOLEAN |
static Type<String> |
DATE
Map
String to PropertyType.DATE |
static Type<Iterable<String>> |
DATES
Map
Iterable<String> to array of PropertyType.DATE |
static Type<BigDecimal> |
DECIMAL
Map
BigDecimal to PropertyType.DECIMAL |
static Type<Iterable<BigDecimal>> |
DECIMALS
Map
Iterable<BigDecimal> to array of PropertyType.DECIMAL |
static Type<Double> |
DOUBLE
Map
Double to PropertyType.DOUBLE |
static Type<Iterable<Double>> |
DOUBLES
Map
Iterable<Double> to array of PropertyType.DOUBLE |
static Type<Long> |
LONG
Map
Long to PropertyType.LONG |
static Type<Iterable<Long>> |
LONGS
Map
Iterable<Long> to array of PropertyType.LONG |
static Type<String> |
NAME
Map
String to PropertyType.STRING |
static Type<Iterable<String>> |
NAMES
Map
Iterable<String> to array of PropertyType.NAME |
static Type<String> |
PATH
Map
String to PropertyType.PATH |
static Type<Iterable<String>> |
PATHS
Map
Iterable<String> to array of PropertyType.PATH |
static Type<String> |
REFERENCE
Map
String to PropertyType.REFERENCE |
static Type<Iterable<String>> |
REFERENCES
Map
Iterable<String> to array of PropertyType.REFERENCE |
static Type<String> |
STRING
Map
String to PropertyType.STRING |
static Type<Iterable<String>> |
STRINGS
Map
Iterable<String> to array of PropertyType.STRING |
static Type<Void> |
UNDEFINED
The special "undefined" type, never encountered in normal values
|
static Type<Iterable<Void>> |
UNDEFINEDS
Multi-valued "undefined" type, never encountered in normal values
|
static Type<String> |
URI
Map
String to PropertyType.URI |
static Type<Iterable<String>> |
URIS
Map
Iterable<String> to array of PropertyType.URI |
static Type<String> |
WEAKREFERENCE
Map
String to PropertyType.WEAKREFERENCE |
static Type<Iterable<String>> |
WEAKREFERENCES
Map
Iterable<String> to array of PropertyType.WEAKREFERENCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Type<?> that) |
boolean |
equals(Object other) |
static Type<?> |
fromString(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. |
String |
toString() |
public static final Type<String> STRING
String to PropertyType.STRINGpublic static final Type<Blob> BINARY
Blob to PropertyType.BINARYpublic static final Type<Long> LONG
Long to PropertyType.LONGpublic static final Type<Double> DOUBLE
Double to PropertyType.DOUBLEpublic static final Type<String> DATE
String to PropertyType.DATEpublic static final Type<Boolean> BOOLEAN
Boolean to PropertyType.BOOLEANpublic static final Type<String> NAME
String to PropertyType.STRINGpublic static final Type<String> PATH
String to PropertyType.PATHpublic static final Type<String> REFERENCE
String to PropertyType.REFERENCEpublic static final Type<String> WEAKREFERENCE
String to PropertyType.WEAKREFERENCEpublic static final Type<String> URI
String to PropertyType.URIpublic static final Type<BigDecimal> DECIMAL
BigDecimal to PropertyType.DECIMALpublic static final Type<Iterable<String>> STRINGS
Iterable<String> to array of PropertyType.STRINGpublic static final Type<Iterable<Blob>> BINARIES
Iterable<Blob> to array of PropertyType.BINARYpublic static final Type<Iterable<Long>> LONGS
Iterable<Long> to array of PropertyType.LONGpublic static final Type<Iterable<Double>> DOUBLES
Iterable<Double> to array of PropertyType.DOUBLEpublic static final Type<Iterable<String>> DATES
Iterable<String> to array of PropertyType.DATEpublic static final Type<Iterable<Boolean>> BOOLEANS
Iterable<Boolean> to array of PropertyType.BOOLEANpublic static final Type<Iterable<String>> NAMES
Iterable<String> to array of PropertyType.NAMEpublic static final Type<Iterable<String>> PATHS
Iterable<String> to array of PropertyType.PATHpublic static final Type<Iterable<String>> REFERENCES
Iterable<String> to array of PropertyType.REFERENCEpublic static final Type<Iterable<String>> WEAKREFERENCES
Iterable<String> to array of PropertyType.WEAKREFERENCEpublic static final Type<Iterable<String>> URIS
Iterable<String> to array of PropertyType.URIpublic static final Type<Iterable<BigDecimal>> DECIMALS
Iterable<BigDecimal> to array of PropertyType.DECIMALpublic static final Type<Void> UNDEFINED
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 instanceIllegalArgumentException - if tag is not valid as per definition in PropertyType.public static Type<?> fromString(String string)
Type with the given string representation.string - type stringpublic Type<?> getBaseType()
IllegalStateException - if isArray is false.public Type<?> getArrayType()
IllegalStateException - if isArray is true.public int compareTo(@Nonnull Type<?> that)
compareTo in interface Comparable<Type<?>>Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.