Package org.apache.jackrabbit.commons
Class SimpleValueFactory
- java.lang.Object
-
- org.apache.jackrabbit.value.AbstractValueFactory
-
- org.apache.jackrabbit.commons.SimpleValueFactory
-
- All Implemented Interfaces:
ValueFactory
public class SimpleValueFactory extends AbstractValueFactory
Simple value factory implementation for use mainly in testing. Complex value types such as names, paths and references are kept just as strings, and no format checks nor any namespace prefix updates are made.- Since:
- Apache Jackrabbit 2.3
-
-
Constructor Summary
Constructors Constructor Description SimpleValueFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkNameFormat(String nameValue)
Checks the format of the given string representing a name value.protected void
checkPathFormat(String pathValue)
Checks the format of the given string representing a path value.-
Methods inherited from class org.apache.jackrabbit.value.AbstractValueFactory
createBinary, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue
-
-
-
-
Method Detail
-
checkPathFormat
protected void checkPathFormat(String pathValue) throws ValueFormatException
Description copied from class:AbstractValueFactory
Checks the format of the given string representing a path value. Implementations must assert that the given value is a valid jcr path.- Specified by:
checkPathFormat
in classAbstractValueFactory
- Throws:
ValueFormatException
- If the givenpathValue
isn't a valid jcr path.
-
checkNameFormat
protected void checkNameFormat(String nameValue) throws ValueFormatException
Description copied from class:AbstractValueFactory
Checks the format of the given string representing a name value. Implementations must assert that the given value is a valid jcr name.- Specified by:
checkNameFormat
in classAbstractValueFactory
- Throws:
ValueFormatException
- If the givenpathValue
isn't a valid jcr name.
-
-