Package org.apache.jackrabbit.value
Class ValueFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.value.AbstractValueFactory
-
- org.apache.jackrabbit.value.ValueFactoryImpl
-
- All Implemented Interfaces:
ValueFactory
public class ValueFactoryImpl extends AbstractValueFactory
Simple extension of theAbstractValueFactory
that omits any validation checks for path and name values.- See Also:
Session.getValueFactory()
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValueFactoryImpl()
Constructs aValueFactory
object.
-
Method Summary
All Methods Static 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.static ValueFactory
getInstance()
-
Methods inherited from class org.apache.jackrabbit.value.AbstractValueFactory
createBinary, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue
-
-
-
-
Method Detail
-
getInstance
public static ValueFactory getInstance()
-
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.- See Also:
AbstractValueFactory.checkPathFormat(String)
-
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.- See Also:
AbstractValueFactory.checkNameFormat(String)
-
-