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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
All Implemented Interfaces:
QValueFactory
Direct Known Subclasses:
QValueFactoryImpl

public abstract class AbstractQValueFactory
extends Object
implements QValueFactory

AbstractQValueFactory...


Field Summary
static String DEFAULT_ENCODING
          the default encoding
protected static NameFactory NAME_FACTORY
           
protected static PathFactory PATH_FACTORY
           
 
Constructor Summary
AbstractQValueFactory()
           
 
Method Summary
 QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
           
 QValue create(BigDecimal value)
           
 QValue create(boolean value)
           
 QValue create(Calendar value)
           
 QValue create(double value)
           
 QValue create(long value)
           
 QValue create(Name value)
           
 QValue create(Path value)
           
 QValue create(String value, int type)
           
 QValue create(URI value)
           
protected  QValue createReference(String ref, boolean weak)
          Creates a new QValue of type REFERENCE or WEAKREFERENCE.
protected  QValue createString(String value)
          Creates a new QValue of type STRING.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.spi.QValueFactory
create, create, create
 

Field Detail

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
the default encoding

See Also:
Constant Field Values

PATH_FACTORY

protected static final PathFactory PATH_FACTORY

NAME_FACTORY

protected static final NameFactory NAME_FACTORY
Constructor Detail

AbstractQValueFactory

public AbstractQValueFactory()
Method Detail

computeAutoValues

public QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
                           throws RepositoryException
Specified by:
computeAutoValues in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition)

create

public QValue create(String value,
                     int type)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(String, int)

create

public QValue create(Calendar value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(Calendar)

create

public QValue create(double value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(double)

create

public QValue create(long value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(long)

create

public QValue create(boolean value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(boolean)

create

public QValue create(Name value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(Name)

create

public QValue create(Path value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(Path)

create

public QValue create(URI value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(URI)

create

public QValue create(BigDecimal value)
              throws RepositoryException
Specified by:
create in interface QValueFactory
Throws:
RepositoryException
See Also:
QValueFactory.create(URI)

createString

protected QValue createString(String value)
Creates a new QValue of type STRING.

Parameters:
value - the string value.
Returns:
a new QValue.

createReference

protected QValue createReference(String ref,
                                 boolean weak)
Creates a new QValue of type REFERENCE or WEAKREFERENCE.

Parameters:
ref - the reference value.
weak - whether the reference is weak.
Returns:
a new QValue.


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