org.apache.jackrabbit.rmi.value
Class PathValue

java.lang.Object
  extended byorg.apache.jackrabbit.rmi.value.BaseNonStreamValue
      extended byorg.apache.jackrabbit.rmi.value.PathValue
All Implemented Interfaces:
Serializable, StatefulValue, Value

public class PathValue
extends BaseNonStreamValue
implements Serializable, StatefulValue

The PathValue class implements the committed value state for Path values as a part of the State design pattern (Gof) used by this package.

Since:
0.16.4.1
Author:
Felix Meschberger
See Also:
Serialized Form

Constructor Summary
protected PathValue(String value)
          Creates an instance for the given path value.
 
Method Summary
 String getString()
          Returns the string representation of the path value.
 int getType()
          Returns PropertyType.PATH.
protected static String toPath(String value)
          Checks whether the string value adheres to the path syntax.
 
Methods inherited from class org.apache.jackrabbit.rmi.value.BaseNonStreamValue
getBoolean, getDate, getDouble, getLong, getStream, getValueFormatException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.Value
getBoolean, getDate, getDouble, getLong, getStream
 

Constructor Detail

PathValue

protected PathValue(String value)
             throws ValueFormatException
Creates an instance for the given path value.

Method Detail

toPath

protected static String toPath(String value)
                        throws ValueFormatException
Checks whether the string value adheres to the path syntax.

Parameters:
value - The string to check for synthactical compliance with a path value.
Returns:
The input value.
Throws:
ValueFormatException - if the string value is not a synthactically correct path.

getType

public int getType()
Returns PropertyType.PATH.

Specified by:
getType in interface Value

getString

public String getString()
                 throws ValueFormatException,
                        RepositoryException
Returns the string representation of the path value.

Specified by:
getString in interface Value
Throws:
ValueFormatException
RepositoryException


Copyright © 2004-2006 . All Rights Reserved.