public class

OProperties

extends Object
java.lang.Object
   ↳ org.odata4j.core.OProperties

Class Overview

A static factory to create immutable OProperty instances.

Summary

Public Methods
static OProperty<Byte[]> binary(String name, Byte[] value)
Creates a new byte-array-valued OData property with BINARY
static OProperty<byte[]> binary(String name, byte[] value)
Creates a new byte-array-valued OData property with BINARY
static OProperty<Boolean> boolean_(String name, Boolean value)
Creates a new boolean-valued OData property with BOOLEAN
static OProperty<UnsignedByte> byte_(String name, UnsignedByte value)
Creates a new unsigned-byte-valued OData property with BYTE
static OProperty<Character> character(String name, Character value)
Creates a new String-valued OData property with 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, Date value)
Creates a new LocalDateTime-valued OData property with DATETIME
static OProperty<LocalDateTime> datetime(String name, LocalDateTime value)
Creates a new LocalDateTime-valued OData property with DATETIME
static OProperty<LocalDateTime> datetime(String name, Calendar value)
Creates a new LocalDateTime-valued OData property with DATETIME
static OProperty<DateTime> datetimeOffset(String name, DateTime value)
Creates a new DateTime-valued OData property with DATETIMEOFFSET
static OProperty<BigDecimal> decimal(String name, BigInteger value)
Creates a new BigDecimal-valued OData property with DECIMAL
static OProperty<BigDecimal> decimal(String name, double value)
Creates a new BigDecimal-valued OData property with DECIMAL
static OProperty<BigDecimal> decimal(String name, BigDecimal value)
Creates a new BigDecimal-valued OData property with DECIMAL
static OProperty<BigDecimal> decimal(String name, long value)
Creates a new BigDecimal-valued OData property with DECIMAL
static OProperty<Double> double_(String name, Double value)
Creates a new double-precision-valued OData property with DOUBLE
static OProperty<Guid> guid(String name, String value)
Creates a new Guid-valued OData property with GUID
static OProperty<Guid> guid(String name, Guid value)
Creates a new Guid-valued OData property with GUID
static OProperty<Short> int16(String name, Short value)
Creates a new short-valued OData property with INT16
static OProperty<Integer> int32(String name, Integer value)
Creates a new integer-valued OData property with INT32
static OProperty<Long> int64(String name, Long value)
Creates a new long-valued OData property with INT64
static OProperty<?> null_(String name, String fqSimpleTypeName)
Creates a new OData property of the given edm simple type with a null value.
static OProperty<?> null_(String name, EdmSimpleType<?> type)
Creates a new OData property of the given edm simple type with a null value.
static OProperty<?> parseSimple(String name, String 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 SBYTE
static <T> OProperty<T> simple(String name, EdmSimpleType<T> type, Object value)
Creates a new OData property of the given edm-type.
static <T> OProperty<T> 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 SINGLE
static OProperty<String> string(String name, char value)
Creates a new String-valued OData property with STRING
static OProperty<String> string(String name, String value)
Creates a new String-valued OData property with STRING
static OProperty<LocalTime> time(String name, LocalTime value)
Creates a new LocalTime-valued OData property with TIME
static OProperty<LocalTime> time(String name, Date value)
Creates a new LocalTime-valued OData property with TIME
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static OProperty<Byte[]> binary (String name, Byte[] value)

Creates a new byte-array-valued OData property with BINARY

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<byte[]> binary (String name, byte[] value)

Creates a new byte-array-valued OData property with BINARY

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Boolean> boolean_ (String name, Boolean value)

Creates a new boolean-valued OData property with BOOLEAN

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<UnsignedByte> byte_ (String name, UnsignedByte value)

Creates a new unsigned-byte-valued OData property with BYTE

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Character> character (String name, Character value)

Creates a new String-valued OData property with STRING

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public 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.

Parameters
name The property name
type The property edm-type of objects in the collection
value The OCollection
Returns
  • a new OData property instance

public static OProperty<List<OProperty<?>>> complex (String name, EdmComplexType type, List<OProperty<?>> value)

Creates a new complex-valued OData property of the given edm-type.

Parameters
name The property name
type The property edm-type
value The property values
Returns
  • a new OData property instance

public static OProperty<LocalDateTime> datetime (String name, Date value)

Creates a new LocalDateTime-valued OData property with DATETIME

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<LocalDateTime> datetime (String name, LocalDateTime value)

Creates a new LocalDateTime-valued OData property with DATETIME

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<LocalDateTime> datetime (String name, Calendar value)

Creates a new LocalDateTime-valued OData property with DATETIME

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<DateTime> datetimeOffset (String name, DateTime value)

Creates a new DateTime-valued OData property with DATETIMEOFFSET

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<BigDecimal> decimal (String name, BigInteger value)

Creates a new BigDecimal-valued OData property with DECIMAL

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<BigDecimal> decimal (String name, double value)

Creates a new BigDecimal-valued OData property with DECIMAL

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<BigDecimal> decimal (String name, BigDecimal value)

Creates a new BigDecimal-valued OData property with DECIMAL

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<BigDecimal> decimal (String name, long value)

Creates a new BigDecimal-valued OData property with DECIMAL

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Double> double_ (String name, Double value)

Creates a new double-precision-valued OData property with DOUBLE

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Guid> guid (String name, String value)

Creates a new Guid-valued OData property with GUID

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Guid> guid (String name, Guid value)

Creates a new Guid-valued OData property with GUID

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Short> int16 (String name, Short value)

Creates a new short-valued OData property with INT16

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Integer> int32 (String name, Integer value)

Creates a new integer-valued OData property with INT32

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Long> int64 (String name, Long value)

Creates a new long-valued OData property with INT64

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<?> null_ (String name, String fqSimpleTypeName)

Creates a new OData property of the given edm simple type with a null value.

Parameters
name The property name
fqSimpleTypeName The property edm simple type
Returns
  • a new OData property instance

public static OProperty<?> null_ (String name, EdmSimpleType<?> type)

Creates a new OData property of the given edm simple type with a null value.

Parameters
name The property name
type The property edm simple type
Returns
  • a new OData property instance

public static OProperty<?> parseSimple (String name, String type, String value)

Creates a new OData property of the given edm-type with a value parsed from a string.

Parameters
name The property name
type The property edm-type
value The property value
Returns
  • a new OData property instance

public static OProperty<Byte> sbyte_ (String name, byte value)

Creates a new byte-valued OData property with SBYTE

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<T> simple (String name, EdmSimpleType<T> type, Object value)

Creates a new OData property of the given edm-type.

Parameters
name The property name
type The property edm-type
value The property value
Returns
  • a new OData property instance

public static OProperty<T> simple (String name, T value)

Creates a new OData property, inferring the edm-type from the value provided, which cannot be null.

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<Float> single (String name, Float value)

Creates a new single-precision-valued OData property with SINGLE

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<String> string (String name, char value)

Creates a new String-valued OData property with STRING

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<String> string (String name, String value)

Creates a new String-valued OData property with STRING

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<LocalTime> time (String name, LocalTime value)

Creates a new LocalTime-valued OData property with TIME

Parameters
name The property name
value The property value
Returns
  • a new OData property instance

public static OProperty<LocalTime> time (String name, Date value)

Creates a new LocalTime-valued OData property with TIME

Parameters
name The property name
value The property value
Returns
  • a new OData property instance