org.jboss.dna.graph.property.basic
Class StandardValueFactories

java.lang.Object
  extended by org.jboss.dna.graph.property.basic.AbstractValueFactories
      extended by org.jboss.dna.graph.property.basic.StandardValueFactories
All Implemented Interfaces:
Iterable<ValueFactory<?>>, ValueFactories

@Immutable
public class StandardValueFactories
extends AbstractValueFactories

The standard set of value factories.


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.
 ValueFactory<Reference> getReferenceFactory()
          Get the value factory for reference properties.
 ValueFactory<String> getStringFactory()
          Get the value factory for string properties.
 TextDecoder getTextDecoder()
           
 ValueFactory<URI> getUriFactory()
          Get the value factory for URI properties.
 UuidFactory getUuidFactory()
          Get the value factory for UUID properties.
 
Methods inherited from class org.jboss.dna.graph.property.basic.AbstractValueFactories
getValueFactory, getValueFactory, iterator
 
Methods inherited from class java.lang.Object
equals, 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

getTextDecoder

public TextDecoder getTextDecoder()
Returns:
decoder

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 ValueFactory<Reference> getReferenceFactory()
Get the value factory for reference properties.

Returns:
the factory; never null

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


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