|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.property.basic.AbstractValueFactories
@ThreadSafe public abstract class AbstractValueFactories

Abstract implementation of ValueFactories that implements all the methods other than the get*Factory()
methods. Subclasses can simply implement these methods and inherit the iterator(), getValueFactory(Object)
and getValueFactory(PropertyType) method implementations.
| Nested Class Summary | |
|---|---|
protected class |
AbstractValueFactories.ValueFactoryIterator
|
| Constructor Summary | |
|---|---|
AbstractValueFactories()
|
|
| Method Summary | |
|---|---|
ValueFactory<?> |
getValueFactory(Object prototype)
Get the value factory that is best able to create values with the most natural type given by the supplied value. |
ValueFactory<?> |
getValueFactory(PropertyType type)
Get the value factory that creates values of the supplied type. |
Iterator<ValueFactory<?>> |
iterator()
This implementation always iterates over the instances return by the get*Factory() methods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.modeshape.graph.property.ValueFactories |
|---|
getBinaryFactory, getBooleanFactory, getDateFactory, getDecimalFactory, getDoubleFactory, getLongFactory, getNameFactory, getObjectFactory, getPathFactory, getReferenceFactory, getStringFactory, getTypeSystem, getUriFactory, getUuidFactory, getWeakReferenceFactory |
| Constructor Detail |
|---|
public AbstractValueFactories()
| Method Detail |
|---|
public Iterator<ValueFactory<?>> iterator()
This implementation always iterates over the instances return by the get*Factory() methods.
iterator in interface Iterable<ValueFactory<?>>public ValueFactory<?> getValueFactory(PropertyType type)
type.
getValueFactory in interface ValueFactoriestype - the type for the values
public ValueFactory<?> getValueFactory(Object prototype)
getValueFactory in interface ValueFactoriesprototype - the value that should be used to determine the best value factory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||