-
- Type Parameters:
V
- type of thevalue
.
- All Superinterfaces:
EventSource<ObservableEvent<V>,ObservableEventListener<? super V>>
,MarshallableObject
,Marshaller<Object>
,ObservableValue<V>
,PropertyPath<V>
,ReadableTypedValue<V>
,ReadableValue<V>
,Supplier<V>
,TypedPropertyPath<V>
,Validatable
- All Known Subinterfaces:
ReadableBeanProperty<V>
,ReadableBigDecimalProperty
,ReadableBigIntegerProperty
,ReadableBooleanProperty
,ReadableByteProperty
,io.github.mmm.property.container.collection.ReadableCollectionProperty<V,E>
,ReadableContainerProperty<V,E>
,ReadableDoubleProperty
,ReadableFloatProperty
,ReadableInstantProperty
,ReadableIntegerProperty
,ReadableListProperty<E>
,ReadableLocalDateProperty
,ReadableLocalDateTimeProperty
,ReadableLocalTimeProperty
,ReadableLongProperty
,ReadableMapProperty<K,V>
,ReadableNumberProperty<N>
,ReadableObjectProperty<V>
,ReadableOffsetDateTimeProperty
,ReadableOffsetTimeProperty
,ReadableRangeProperty<V>
,ReadableSetProperty<E>
,ReadableShortProperty
,ReadableSimpleProperty<V>
,ReadableStringProperty
,ReadableZonedDateTimeProperty
,WritableBeanProperty<V>
,WritableBigDecimalProperty
,WritableBigIntegerProperty
,WritableBooleanProperty
,WritableByteProperty
,io.github.mmm.property.container.collection.WritableCollectionProperty<V,E>
,WritableContainerProperty<V,E>
,WritableDoubleProperty
,WritableFloatProperty
,WritableInstantProperty
,WritableIntegerProperty
,WritableListProperty<E>
,WritableLocalDateProperty
,WritableLocalDateTimeProperty
,WritableLocalTimeProperty
,WritableLongProperty
,WritableMapProperty<K,V>
,WritableNumberProperty<N>
,WritableObjectProperty<V>
,WritableOffsetDateTimeProperty
,WritableOffsetTimeProperty
,WritableProperty<V>
,WritableRangeProperty<V>
,WritableSetProperty<E>
,WritableShortProperty
,WritableSimpleProperty<V>
,WritableStringProperty
,WritableZonedDateTimeProperty
- All Known Implementing Classes:
BeanProperty
,BigDecimalProperty
,BigIntegerProperty
,BooleanProperty
,ByteProperty
,io.github.mmm.property.container.collection.CollectionProperty
,ContainerProperty
,DoubleProperty
,DurationInSecondsProperty
,FloatProperty
,IdProperty
,InstantProperty
,IntegerProperty
,LinkProperty
,ListProperty
,LocalDateProperty
,LocalDateTimeProperty
,LocalTimeProperty
,LongProperty
,MapProperty
,NumberProperty
,ObjectProperty
,OffsetDateTimeProperty
,OffsetTimeProperty
,Property
,RangeProperty
,SetProperty
,ShortProperty
,SimpleProperty
,StringListProperty
,StringProperty
,TemporalProperty
,ZonedDateTimeProperty
public interface ReadableProperty<V> extends ObservableValue<V>, TypedPropertyPath<V>, MarshallableObject, Validatable
This is the interface for a generic property.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PropertyMetadata<V>
getMetadata()
String
getName()
boolean
isReadOnly()
default boolean
isTransient()
boolean
isValid()
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.marshall.MarshallableObject
write, writeObject
-
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
-
Methods inherited from interface io.github.mmm.value.ReadableTypedValue
getValueClass
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
Methods inherited from interface io.github.mmm.validation.Validatable
validate
-
-
-
-
Method Detail
-
getName
String getName()
- Specified by:
getName
in interfacePropertyPath<V>
- Returns:
- the name of the property. By convention it should start with a
capital
letter followed by alpha-numeric characters. The name of a single property must especially not contain the dot character (.) that is used to separate segments in apath
.
-
isValid
boolean isValid()
- Returns:
true
if valid,false
otherwise.- See Also:
Validatable.validate()
-
isReadOnly
boolean isReadOnly()
- Returns:
true
if this property is immutable (read-only) andmodifications
will fail with an exception,false
otherwise.- See Also:
WritableProperty.getReadOnly()
-
isTransient
default boolean isTransient()
- Returns:
true
if transient (e.g. computed and therefore not to be marshalled),false
otherwise.
-
getMetadata
PropertyMetadata<V> getMetadata()
- Returns:
- the
metadata
of this property.
-
-