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 theAbstractValueFactorythat omits any validation checks for path and name values.- See Also:
Session.getValueFactory()
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueFactoryImpl()Constructs aValueFactoryobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckNameFormat(String nameValue)Checks the format of the given string representing a name value.protected voidcheckPathFormat(String pathValue)Checks the format of the given string representing a path value.static ValueFactorygetInstance()-
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:AbstractValueFactoryChecks the format of the given string representing a path value. Implementations must assert that the given value is a valid jcr path.- Specified by:
checkPathFormatin classAbstractValueFactory- Throws:
ValueFormatException- If the givenpathValueisn't a valid jcr path.- See Also:
AbstractValueFactory.checkPathFormat(String)
-
checkNameFormat
protected void checkNameFormat(String nameValue) throws ValueFormatException
Description copied from class:AbstractValueFactoryChecks the format of the given string representing a name value. Implementations must assert that the given value is a valid jcr name.- Specified by:
checkNameFormatin classAbstractValueFactory- Throws:
ValueFormatException- If the givenpathValueisn't a valid jcr name.- See Also:
AbstractValueFactory.checkNameFormat(String)
-
-