org.exoplatform.services.jcr.rmi.api.value
Class PathValue
java.lang.Object
org.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue
org.exoplatform.services.jcr.rmi.api.value.PathValue
- All Implemented Interfaces:
- java.io.Serializable, javax.jcr.Value, ExtendedValue, StatefulValue
public class PathValue
- extends BaseNonStreamValue
- implements java.io.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
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
PathValue(java.lang.String value)
Creates an instance for the given path value. |
|
Method Summary |
long |
getLength()
|
int |
getOrderNumber()
|
java.lang.String |
getString()
Returns the string representation of the path value. |
int |
getType()
Returns PropertyType.PATH. |
protected static java.lang.String |
toPath(java.lang.String value)
Checks whether the string value adheres to the path syntax. |
| 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 |
PathValue
protected PathValue(java.lang.String value)
throws javax.jcr.ValueFormatException
- Creates an instance for the given path
value.
- Throws:
javax.jcr.ValueFormatException
toPath
protected static java.lang.String toPath(java.lang.String value)
throws javax.jcr.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:
javax.jcr.ValueFormatException - if the string value is not a synthactically correct path.
getType
public int getType()
- Returns
PropertyType.PATH.
- Specified by:
getType in interface javax.jcr.Value
getString
public java.lang.String getString()
throws javax.jcr.ValueFormatException,
javax.jcr.RepositoryException
- Returns the string representation of the path value.
- Specified by:
getString in interface javax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
getLength
public long getLength()
- Specified by:
getLength in interface ExtendedValue
getOrderNumber
public int getOrderNumber()
- Specified by:
getOrderNumber in interface ExtendedValue- Overrides:
getOrderNumber in class BaseNonStreamValue
Copyright © 2010 eXo Platform SAS. All Rights Reserved.