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
|
Method Summary |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleValueFactory
public SimpleValueFactory()
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 class AbstractValueFactory
- Throws:
ValueFormatException - If the given pathValue
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 class AbstractValueFactory
- Throws:
ValueFormatException - If the given pathValue
isn't a valid jcr name.
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.