|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.core.OProperties
public class OProperties
A static factory to create immutable OProperty
instances.
Method Summary | ||
---|---|---|
static OProperty<byte[]> |
binary(String name,
byte[] value)
Creates a new byte-array-valued OData property with EdmSimpleType.BINARY |
|
static OProperty<Byte[]> |
binary(String name,
Byte[] value)
Creates a new byte-array-valued OData property with EdmSimpleType.BINARY |
|
static OProperty<Boolean> |
boolean_(String name,
Boolean value)
Creates a new boolean-valued OData property with EdmSimpleType.BOOLEAN |
|
static OProperty<UnsignedByte> |
byte_(String name,
UnsignedByte value)
Creates a new unsigned-byte-valued OData property with EdmSimpleType.BYTE |
|
static OProperty<Character> |
character(String name,
Character value)
Creates a new String-valued OData property with EdmSimpleType.STRING |
|
static OProperty<OCollection<? extends OObject>> |
collection(String name,
EdmCollectionType type,
OCollection<? extends OObject> value)
Creates a new collecion-valued OData property of the given edm-type. |
|
static OProperty<List<OProperty<?>>> |
complex(String name,
EdmComplexType type,
List<OProperty<?>> value)
Creates a new complex-valued OData property of the given edm-type. |
|
static OProperty<LocalDateTime> |
datetime(String name,
Calendar value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Date value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Date value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Instant value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
LocalDateTime value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Time value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<LocalDateTime> |
datetime(String name,
Timestamp value)
Creates a new LocalDateTime-valued OData property with EdmSimpleType.DATETIME |
|
static OProperty<DateTime> |
datetimeOffset(String name,
DateTime value)
Creates a new DateTime-valued OData property with EdmSimpleType.DATETIMEOFFSET |
|
static OProperty<BigDecimal> |
decimal(String name,
BigDecimal value)
Creates a new BigDecimal-valued OData property with EdmSimpleType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
BigInteger value)
Creates a new BigDecimal-valued OData property with EdmSimpleType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
double value)
Creates a new BigDecimal-valued OData property with EdmSimpleType.DECIMAL |
|
static OProperty<BigDecimal> |
decimal(String name,
long value)
Creates a new BigDecimal-valued OData property with EdmSimpleType.DECIMAL |
|
static OProperty<Double> |
double_(String name,
Double value)
Creates a new double-precision-valued OData property with EdmSimpleType.DOUBLE |
|
static OProperty<Guid> |
guid(String name,
Guid value)
Creates a new Guid-valued OData property with EdmSimpleType.GUID |
|
static OProperty<Guid> |
guid(String name,
String value)
Creates a new Guid-valued OData property with EdmSimpleType.GUID |
|
static OProperty<Short> |
int16(String name,
Short value)
Creates a new short-valued OData property with EdmSimpleType.INT16 |
|
static OProperty<Integer> |
int32(String name,
Integer value)
Creates a new integer-valued OData property with EdmSimpleType.INT32 |
|
static OProperty<Long> |
int64(String name,
Long value)
Creates a new long-valued OData property with EdmSimpleType.INT64 |
|
static OProperty<?> |
null_(String name,
EdmSimpleType<?> type)
Creates a new OData property of the given edm simple type with a null value. |
|
static OProperty<?> |
null_(String name,
String fqSimpleTypeName)
Creates a new OData property of the given edm simple type with a null value. |
|
static OProperty<?> |
parseSimple(String name,
EdmSimpleType type,
String value)
Creates a new OData property of the given edm-type with a value parsed from a string. |
|
static OProperty<Byte> |
sbyte_(String name,
byte value)
Creates a new byte-valued OData property with EdmSimpleType.SBYTE |
|
static
|
simple(String name,
EdmSimpleType<T> type,
Object value)
Creates a new OData property of the given edm-type. |
|
static
|
simple(String name,
T value)
Creates a new OData property, inferring the edm-type from the value provided, which cannot be null. |
|
static OProperty<Float> |
single(String name,
Float value)
Creates a new single-precision-valued OData property with EdmSimpleType.SINGLE |
|
static OProperty<String> |
string(String name,
char value)
Creates a new String-valued OData property with EdmSimpleType.STRING |
|
static OProperty<String> |
string(String name,
String value)
Creates a new String-valued OData property with EdmSimpleType.STRING |
|
static OProperty<LocalTime> |
time(String name,
Calendar value)
Creates a new LocalTime-valued OData property with EdmSimpleType.TIME |
|
static OProperty<LocalTime> |
time(String name,
Date value)
Creates a new LocalTime-valued OData property with EdmSimpleType.TIME |
|
static OProperty<LocalTime> |
time(String name,
LocalTime value)
Creates a new LocalTime-valued OData property with EdmSimpleType.TIME |
|
static OProperty<LocalTime> |
time(String name,
Time value)
Creates a new LocalTime-valued OData property with EdmSimpleType.TIME |
|
static OProperty<LocalTime> |
time(String name,
Timestamp value)
Creates a new LocalTime-valued OData property with EdmSimpleType.TIME |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OProperty<byte[]> binary(String name, byte[] value)
EdmSimpleType.BINARY
name
- the property namevalue
- the property value
public static OProperty<Byte[]> binary(String name, Byte[] value)
EdmSimpleType.BINARY
name
- the property namevalue
- the property value
public static OProperty<Boolean> boolean_(String name, Boolean value)
EdmSimpleType.BOOLEAN
name
- the property namevalue
- the property value
public static OProperty<UnsignedByte> byte_(String name, UnsignedByte value)
EdmSimpleType.BYTE
name
- the property namevalue
- the property value
public static OProperty<Character> character(String name, Character value)
EdmSimpleType.STRING
name
- the property namevalue
- the property value
public static OProperty<OCollection<? extends OObject>> collection(String name, EdmCollectionType type, OCollection<? extends OObject> value)
name
- the property nametype
- the property edm-type of objects in the collectionvalue
- the OCollection
public static OProperty<List<OProperty<?>>> complex(String name, EdmComplexType type, List<OProperty<?>> value)
name
- the property nametype
- the property edm-typevalue
- the property values
public static OProperty<LocalDateTime> datetime(String name, Calendar value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Date value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Date value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Instant value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, LocalDateTime value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Time value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<LocalDateTime> datetime(String name, Timestamp value)
EdmSimpleType.DATETIME
name
- the property namevalue
- the property value
public static OProperty<DateTime> datetimeOffset(String name, DateTime value)
EdmSimpleType.DATETIMEOFFSET
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, BigDecimal value)
EdmSimpleType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, BigInteger value)
EdmSimpleType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, double value)
EdmSimpleType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<BigDecimal> decimal(String name, long value)
EdmSimpleType.DECIMAL
name
- the property namevalue
- the property value
public static OProperty<Double> double_(String name, Double value)
EdmSimpleType.DOUBLE
name
- the property namevalue
- the property value
public static OProperty<Guid> guid(String name, Guid value)
EdmSimpleType.GUID
name
- the property namevalue
- the property value
public static OProperty<Guid> guid(String name, String value)
EdmSimpleType.GUID
name
- the property namevalue
- the property value
public static OProperty<Short> int16(String name, Short value)
EdmSimpleType.INT16
name
- the property namevalue
- the property value
public static OProperty<Integer> int32(String name, Integer value)
EdmSimpleType.INT32
name
- the property namevalue
- the property value
public static OProperty<Long> int64(String name, Long value)
EdmSimpleType.INT64
name
- the property namevalue
- the property value
public static OProperty<?> null_(String name, EdmSimpleType<?> type)
name
- the property nametype
- the property edm simple type
public static OProperty<?> null_(String name, String fqSimpleTypeName)
name
- the property namefqSimpleTypeName
- the property edm simple type
public static OProperty<?> parseSimple(String name, EdmSimpleType type, String value)
name
- the property nametype
- the property edm-typevalue
- the property value
public static OProperty<Byte> sbyte_(String name, byte value)
EdmSimpleType.SBYTE
name
- the property namevalue
- the property value
public static <T> OProperty<T> simple(String name, EdmSimpleType<T> type, Object value)
T
- the property value's java-typename
- the property nametype
- the property edm-typevalue
- the property value
public static <T> OProperty<T> simple(String name, T value)
T
- the property value's java-typename
- the property namevalue
- the property value
public static OProperty<Float> single(String name, Float value)
EdmSimpleType.SINGLE
name
- the property namevalue
- the property value
public static OProperty<String> string(String name, char value)
EdmSimpleType.STRING
name
- the property namevalue
- the property value
public static OProperty<String> string(String name, String value)
EdmSimpleType.STRING
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, Calendar value)
EdmSimpleType.TIME
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, Date value)
EdmSimpleType.TIME
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, LocalTime value)
EdmSimpleType.TIME
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, Time value)
EdmSimpleType.TIME
name
- the property namevalue
- the property value
public static OProperty<LocalTime> time(String name, Timestamp value)
EdmSimpleType.TIME
name
- the property namevalue
- the property value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |