T
- The metadata typeU
- The javascript type which provides the property or objectpublic class JSMetadata<T,U> extends MetadataBase<T,U>
Modifier and Type | Field and Description |
---|---|
protected IPropertyAccessor<T,U> |
accessor |
category, description, factory, fieldFactory, propertyName, validator
Constructor and Description |
---|
JSMetadata(String propertyName,
String description,
IFieldFactory fieldFactory,
IPropertyAccessor<T,U> accessor,
IFactoryInstantiator<?> factory,
IValidator<T,U> validator) |
Modifier and Type | Method and Description |
---|---|
T |
get(U element)
Returns the value of this property for
the specified model object.
|
T |
remove(U element)
Removes the property from the the specified
model object and returns its former value.
|
T |
set(U element,
T value)
Sets the value of this property for
the specified model object and returns its former value.
|
String |
toString() |
getCategory, getCommandFactory, getDescription, getFieldFactory, getName, validate
protected IPropertyAccessor<T,U> accessor
public JSMetadata(String propertyName, String description, IFieldFactory fieldFactory, IPropertyAccessor<T,U> accessor, IFactoryInstantiator<?> factory, IValidator<T,U> validator)
public T get(U element)
IMetadata
element
- The model object.public T set(U element, T value)
IMetadata
element
- The model object.value
- The value of this property for the specified model object.public T remove(U element)
IMetadata
element
- The model object.Copyright © 2018. All Rights Reserved.