Package org.openremote.model.value
package org.openremote.model.value
-
ClassDescriptionDescribes an
Attribute
that can be added to anAsset
; theAbstractNameValueDescriptorHolder.getName()
must match theAbstractNameValueHolder.getName()
, it also indicates what theValueDescriptor
is for theAttribute
and optionally provides defaultMetaItem
s that should be added to new instances of theAttribute
.This filter works on any type of data; when applying the filter the data should be converted to JSON representation using a tool like Jackson and then the JSON path expression should be applied to this JSON string.Describes aMetaItem
that can be added to anAttribute
; theAbstractNameValueDescriptorHolder.getName()
must match theAbstractNameValueHolder.getName()
, it also indicates what theValueDescriptor
is for theMetaItem
.This class handles deserialising meta item descriptor names toMetaItemDescriptor
s; to reuse instancesIdentifies an item that holds a named property, the name should be very simple, as we use them in SQL path expressions, etc.This class handles serialisingValueDescriptor
s as stringsRepresents a constraint to apply to a value; most are based on JSR-380 validation.The attribute value must match any of the specified values in theValueConstraint.AllowedValues.allowedValues
property.The attribute value must be a java time object, java date object, a string in ISO8601 format or a number representing epoch milliseconds; the value must represent a time in the future.The attribute value must be a java time object, java date object, a string in ISO8601 format or a number representing epoch milliseconds; the value must represent a time in the future or present.The attribute value must be a number lower or equal to the specified value on theValueConstraint.Max.max
property.The attribute value must be a number higher or equal to the specified value on theValueConstraint.Min.min
property.The attribute value must not be null and must contain at least 1 non-whitespace character.The attribute value must not be null nor empty.The attribute value must not be null.The attribute value must be a java time object, java date object, a string in ISO8601 format or a number representing epoch milliseconds; the value must represent a time in the past.The attribute value must be a java time object, java date object, a string in ISO8601 format or a number representing epoch milliseconds; the value must represent a time in the past or present.The attribute value must match the regular expression pattern described in theValueConstraint.Pattern.regexp
property.The attribute value must be between the specified boundaries based on theValueConstraint.Size.min
andValueConstraint.Size.max
properties.A simple wrapper around aClass
that describes a value that can be used byAttribute
s andMetaItem
s; it can also storeValueConstraint
andValueFormat
information.Custom deserialiser that will return the same instance ofValueDescriptor
using theValueDescriptor.ValueDescriptorDeserializer.VALUE_DESCRIPTOR_PROVIDER
attribute; otherwise it will construct a new instanceIdentifies an item that holds aValueDescriptor
.Interface for a filter that can be applied to a value, the filter can return a different value type to the supplied value (i.e.ValueHolder<T>Indicates that the implementing class provides a value of <T> the value should be immutable.