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 SummaryConstructors Constructor Description SimpleValueFactory()
 - 
Method SummaryAll 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.- 
Methods inherited from class org.apache.jackrabbit.value.AbstractValueFactorycreateBinary, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue, createValue
 
- 
 
- 
- 
- 
Method Detail- 
checkPathFormatprotected 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 class- AbstractValueFactory
- Throws:
- ValueFormatException- If the given- pathValueisn't a valid jcr path.
 
 - 
checkNameFormatprotected 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 class- AbstractValueFactory
- Throws:
- ValueFormatException- If the given- pathValueisn't a valid jcr name.
 
 
- 
 
-