org.apache.jackrabbit.value
Class ValueFactoryImpl

java.lang.Object
  extended by org.apache.jackrabbit.value.AbstractValueFactory
      extended by org.apache.jackrabbit.value.ValueFactoryImpl
All Implemented Interfaces:
ValueFactory

public class ValueFactoryImpl
extends AbstractValueFactory

Simple extension of the AbstractValueFactory that omits any validation checks for path and name values.

See Also:
Session.getValueFactory()

Constructor Summary
protected ValueFactoryImpl()
          Constructs a ValueFactory object.
 
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.
static ValueFactory getInstance()
           
 
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
 

Constructor Detail

ValueFactoryImpl

protected ValueFactoryImpl()
Constructs a ValueFactory object.

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 class AbstractValueFactory
Throws:
ValueFormatException - If the given pathValue 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 class AbstractValueFactory
Throws:
ValueFormatException - If the given pathValue isn't a valid jcr name.
See Also:
AbstractValueFactory.checkNameFormat(String)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.