Class AbstractQValueFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
-
- All Implemented Interfaces:
org.apache.jackrabbit.spi.QValueFactory
- Direct Known Subclasses:
QValueFactoryImpl
public abstract class AbstractQValueFactory extends Object implements org.apache.jackrabbit.spi.QValueFactory
AbstractQValueFactory...
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ENCODINGthe default encodingprotected static org.apache.jackrabbit.spi.NameFactoryNAME_FACTORYprotected static org.apache.jackrabbit.spi.PathFactoryPATH_FACTORY
-
Constructor Summary
Constructors Constructor Description AbstractQValueFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jackrabbit.spi.QValue[]computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition propertyDefinition)org.apache.jackrabbit.spi.QValuecreate(boolean value)org.apache.jackrabbit.spi.QValuecreate(double value)org.apache.jackrabbit.spi.QValuecreate(long value)org.apache.jackrabbit.spi.QValuecreate(String value, int type)org.apache.jackrabbit.spi.QValuecreate(BigDecimal value)org.apache.jackrabbit.spi.QValuecreate(URI value)org.apache.jackrabbit.spi.QValuecreate(Calendar value)org.apache.jackrabbit.spi.QValuecreate(org.apache.jackrabbit.spi.Name value)org.apache.jackrabbit.spi.QValuecreate(org.apache.jackrabbit.spi.Path value)protected org.apache.jackrabbit.spi.QValuecreateReference(String ref, boolean weak)Creates a new QValue of type REFERENCE or WEAKREFERENCE.protected org.apache.jackrabbit.spi.QValuecreateString(String value)Creates a new QValue of type STRING.
-
-
-
Field Detail
-
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
the default encoding- See Also:
- Constant Field Values
-
PATH_FACTORY
protected static final org.apache.jackrabbit.spi.PathFactory PATH_FACTORY
-
NAME_FACTORY
protected static final org.apache.jackrabbit.spi.NameFactory NAME_FACTORY
-
-
Method Detail
-
computeAutoValues
public org.apache.jackrabbit.spi.QValue[] computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition propertyDefinition) throws RepositoryException- Specified by:
computeAutoValuesin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition)
-
create
public org.apache.jackrabbit.spi.QValue create(String value, int type) throws RepositoryException
- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(String, int)
-
create
public org.apache.jackrabbit.spi.QValue create(Calendar value) throws RepositoryException
- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(Calendar)
-
create
public org.apache.jackrabbit.spi.QValue create(double value) throws RepositoryException- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(double)
-
create
public org.apache.jackrabbit.spi.QValue create(long value) throws RepositoryException- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(long)
-
create
public org.apache.jackrabbit.spi.QValue create(boolean value) throws RepositoryException- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(boolean)
-
create
public org.apache.jackrabbit.spi.QValue create(org.apache.jackrabbit.spi.Name value) throws RepositoryException- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(Name)
-
create
public org.apache.jackrabbit.spi.QValue create(org.apache.jackrabbit.spi.Path value) throws RepositoryException- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(Path)
-
create
public org.apache.jackrabbit.spi.QValue create(URI value) throws RepositoryException
- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(URI)
-
create
public org.apache.jackrabbit.spi.QValue create(BigDecimal value) throws RepositoryException
- Specified by:
createin interfaceorg.apache.jackrabbit.spi.QValueFactory- Throws:
RepositoryException- See Also:
QValueFactory.create(URI)
-
createString
protected org.apache.jackrabbit.spi.QValue createString(String value)
Creates a new QValue of type STRING.- Parameters:
value- the string value.- Returns:
- a new QValue.
-
createReference
protected org.apache.jackrabbit.spi.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.
-
-