org.apache.jackrabbit.spi.commons.value
Class ValueFactoryQImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.value.ValueFactoryQImpl
All Implemented Interfaces:
ValueFactory

public class ValueFactoryQImpl
extends Object
implements ValueFactory

This class implements the ValueFactory interface, wrapping an existing SPI QValueFactory and a NamePathResolver.

See Also:
ValueFactory, QValueFactory

Constructor Summary
ValueFactoryQImpl(QValueFactory qfactory, NamePathResolver resolver)
          Constructs a new ValueFactoryQImpl based on an existing SPI QValueFactory and a NamePathResolver.
 
Method Summary
 Value createValue(boolean value)
          
 Value createValue(Calendar value)
          
 Value createValue(double value)
          
 Value createValue(InputStream value)
          
 Value createValue(long value)
          
 Value createValue(Node value)
          
 Value createValue(QValue qvalue)
          Create a new Value based on an existing QValue
 Value createValue(String value)
          
 Value createValue(String value, int type)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueFactoryQImpl

public ValueFactoryQImpl(QValueFactory qfactory,
                         NamePathResolver resolver)
Constructs a new ValueFactoryQImpl based on an existing SPI QValueFactory and a NamePathResolver.

Parameters:
qfactory - wrapped QValueFactory
resolver - wrapped NamePathResolver
Method Detail

createValue

public Value createValue(QValue qvalue)
Create a new Value based on an existing QValue

Parameters:
qvalue - existing QValue
Returns:
a Value representing the QValue

createValue

public Value createValue(String value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(long value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(double value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(boolean value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(Calendar value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(InputStream value)

Specified by:
createValue in interface ValueFactory

createValue

public Value createValue(Node value)
                  throws RepositoryException

Specified by:
createValue in interface ValueFactory
Throws:
RepositoryException

createValue

public Value createValue(String value,
                         int type)
                  throws ValueFormatException

Specified by:
createValue in interface ValueFactory
Throws:
ValueFormatException


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.