- java.lang.Object
-
- io.github.mmm.property.factory.AbstractPropertyFactory<V,ObjectProperty<V>>
-
- io.github.mmm.property.object.PropertyFactoryObject<V>
-
- Type Parameters:
V- type of thevalue.
- All Implemented Interfaces:
PropertyFactory<V,ObjectProperty<V>>
public class PropertyFactoryObject<V> extends AbstractPropertyFactory<V,ObjectProperty<V>>
This is the implementation ofPropertyFactoryforObjectProperty.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description PropertyFactoryObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty<V>create(String name, Class<? extends V> valueClass, PropertyMetadata<V> metadata)Creates a new instance of the property.Class<ObjectProperty<V>>getImplementationClass()Class<? extends ReadableProperty<V>>getReadableInterface()Class<? extends V>getValueClass()Class<? extends WritableProperty<V>>getWritableInterface()booleanisPolymorphic()
-
-
-
Method Detail
-
getValueClass
public Class<? extends V> getValueClass()
- Returns:
- the
Classof theproperty value. May benullfor a generic property.
-
getReadableInterface
public Class<? extends ReadableProperty<V>> getReadableInterface()
- Returns:
- the
Classreflecting theReadablePropertyinterface. May benullif no dedicated readable interface exists.
-
getWritableInterface
public Class<? extends WritableProperty<V>> getWritableInterface()
- Returns:
- the
Classreflecting theWritablePropertyinterface. May benullif no dedicated writable interface exists.
-
getImplementationClass
public Class<ObjectProperty<V>> getImplementationClass()
- Returns:
- the
Classreflecting theWritablePropertyimplementation.
-
create
public ObjectProperty<V> create(String name, Class<? extends V> valueClass, PropertyMetadata<V> metadata)
Description copied from interface:PropertyFactoryCreates a new instance of the property.- Parameters:
name- theproperty name.valueClass- thevalue class.metadata- TODO- Returns:
- the new instance of the property.
-
isPolymorphic
public boolean isPolymorphic()
- Returns:
trueifvalue classis polymorphic and also sub-types are handled by thisPropertyFactory(unless there is a more specificPropertyFactoryavailable),falseotherwise.
-
-