T
- The property typeU
- The type of the object which has this propertypublic interface IMetadata<T,U>
Modifier and Type | Method and Description |
---|---|
T |
get(U model)
Returns the value of this property for
the specified model object.
|
ModelCategory<U> |
getCategory()
Returns the model category this metadata belongs to
|
IFactoryInstantiator<?> |
getCommandFactory()
Returns the instantiator for the factory which will record modifications
to this metadata
|
String |
getDescription()
Returns a human readable description of this
property.
|
IFieldFactory |
getFieldFactory()
Returns the field factory of this property.
|
String |
getName()
Returns the identifier of this property.
|
T |
remove(U model)
Removes the property from the the specified
model object and returns its former value.
|
T |
set(U model,
T value)
Sets the value of this property for
the specified model object and returns its former value.
|
ValidationError |
validate(U model,
T value)
Validates the specified metadata.
|
String getName()
String getDescription()
IFieldFactory getFieldFactory()
IFactoryInstantiator<?> getCommandFactory()
ModelCategory<U> getCategory()
T get(U model)
model
- The model object.T set(U model, T value)
model
- The model object.value
- The value of this property for the specified model object.T remove(U model)
model
- The model object.ValidationError validate(U model, T value)
model
- The model object.value
- The value of this property for the specified model object.Copyright © 2018. All Rights Reserved.