Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph.property.basic
Class StandardValueFactories

    java.lang.Object
      org.modeshape.graph.property.basic.AbstractValueFactories
          org.modeshape.graph.property.basic.StandardValueFactories

All Implemented Interfaces:
  Iterable<ValueFactory<?>>, ValueFactories

    @Immutable
    public class StandardValueFactories

extends AbstractValueFactories

The standard set of `value factories`.

Nested Class Summary

Nested classes/interfaces inherited from class org.modeshape.graph.property.basic.AbstractValueFactories
`AbstractValueFactories.ValueFactoryIterator`

Constructor Summary
`StandardValueFactories(NamespaceRegistry namespaceRegistry)` Create a standard set of value factories, using the `default decoder`.
`StandardValueFactories(NamespaceRegistry namespaceRegistry, TextDecoder decoder, TextEncoder encoder, ValueFactory<?>... extraFactories)` Create a standard set of value factories, using the supplied encoder/decoder.

Method Summary
`BinaryFactory` | `getBinaryFactory()` Get the value factory for `binary` properties.
`ValueFactory<Boolean>` | `getBooleanFactory()` Get the value factory for `boolean` properties.
`DateTimeFactory` | `getDateFactory()` Get the value factory for `date` properties.
`ValueFactory<BigDecimal>` | `getDecimalFactory()` Get the value factory for `decimal` properties.
`ValueFactory<Double>` | `getDoubleFactory()` Get the value factory for `double` properties.
`ValueFactory<Long>` | `getLongFactory()` Get the value factory for `long` properties.
`NameFactory` | `getNameFactory()` Get the value factory for `name` properties.
`NamespaceRegistry` | `getNamespaceRegistry()`
`ValueFactory<Object>` | `getObjectFactory()` Get the value factory for `object` properties.
`PathFactory` | `getPathFactory()` Get the value factory for `path` properties.
`ReferenceFactory` | `getReferenceFactory()` Get the value factory for `reference` properties.
`ValueFactory<String>` | `getStringFactory()` Get the value factory for `string` properties.
`TypeSystem` | `getTypeSystem()` Get the type system associated with these factories.
`ValueFactory<URI>` | `getUriFactory()` Get the value factory for `URI` properties.
`UuidFactory` | `getUuidFactory()` Get the value factory for `UUID` properties.
`ReferenceFactory` | `getWeakReferenceFactory()` Get the value factory for `reference` properties.

Methods inherited from class org.modeshape.graph.property.basic.AbstractValueFactories
`getValueFactory, getValueFactory, iterator`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StandardValueFactories

    public StandardValueFactories(NamespaceRegistry namespaceRegistry)

  Create a standard set of value factories, using the `default decoder`.

  Parameters:
    `namespaceRegistry` - the namespace registry
  Throws:
    `IllegalArgumentException` - if the namespace registry is null

### StandardValueFactories

    public StandardValueFactories(NamespaceRegistry namespaceRegistry,
                                  TextDecoder decoder,
                                  TextEncoder encoder,
                                  ValueFactory<?>... extraFactories)

  Create a standard set of value factories, using the supplied encoder/decoder.

  Parameters:
    `namespaceRegistry` - the namespace registry
    `decoder` - the decoder that should be used; if null, the `default decoder` is used.
    `encoder` - the encoder that should be used; if null, the `default encoder` is used.
    `extraFactories` - any extra factories that should be used; any factory will override the standard factories based upon the `factory's property type`.
  Throws:
    `IllegalArgumentException` - if the namespace registry is null

Method Detail

### getTypeSystem

    public TypeSystem getTypeSystem()

  Get the type system associated with these factories.

  Returns:
    the type system; never null
  See Also:
    `ValueFactories.getTypeSystem()`

### getNamespaceRegistry

    public NamespaceRegistry getNamespaceRegistry()

  Returns:
    namespaceRegistry

### getBinaryFactory

    public BinaryFactory getBinaryFactory()

  Get the value factory for `binary` properties.

  Returns:
    the factory; never null

### getBooleanFactory

    public ValueFactory<Boolean> getBooleanFactory()

  Get the value factory for `boolean` properties.

  Returns:
    the factory; never null

### getDateFactory

    public DateTimeFactory getDateFactory()

  Get the value factory for `date` properties.

  Returns:
    the factory; never null

### getDecimalFactory

    public ValueFactory<BigDecimal> getDecimalFactory()

  Get the value factory for `decimal` properties.

  Returns:
    the factory; never null

### getDoubleFactory

    public ValueFactory<Double> getDoubleFactory()

  Get the value factory for `double` properties.

  Returns:
    the factory; never null

### getLongFactory

    public ValueFactory<Long> getLongFactory()

  Get the value factory for `long` properties.

  Returns:
    the factory; never null

### getNameFactory

    public NameFactory getNameFactory()

  Get the value factory for `name` properties.

  Returns:
    the factory; never null

### getPathFactory

    public PathFactory getPathFactory()

  Get the value factory for `path` properties.

  Returns:
    the factory; never null

### getReferenceFactory

    public ReferenceFactory getReferenceFactory()

  Get the value factory for `reference` properties.

  Returns:
    the factory; never null

### getWeakReferenceFactory

    public ReferenceFactory getWeakReferenceFactory()

  Get the value factory for `reference` properties.

  Returns:
    the factory; never null
  See Also:
    `ValueFactories.getWeakReferenceFactory()`

### getStringFactory

    public ValueFactory<String> getStringFactory()

  Get the value factory for `string` properties.

  Returns:
    the factory; never null

### getUriFactory

    public ValueFactory<URI> getUriFactory()

  Get the value factory for `URI` properties.

  Returns:
    the factory; never null

### getUuidFactory

    public UuidFactory getUuidFactory()

  Get the value factory for `UUID` properties.

  Returns:
    the factory; never null
  See Also:
    `ValueFactories.getUuidFactory()`

### getObjectFactory

    public ValueFactory<Object> getObjectFactory()

  Get the value factory for `object` properties.

  Returns:
    the factory; never null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.