The PathValue class implements the committed value state for
 Path values as a part of the State design pattern (Gof) used by this package.
@Deprecated public class PathValue extends Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | PathValue(String value)Deprecated.  Creates an instance for the given path  value. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)Deprecated.  Compares values as defined in the JCR specification. | 
| Binary | getBinary()Deprecated.  Returns the binary representation of this value. | 
| boolean | getBoolean()Deprecated.  Always throws a  ValueFormatException. | 
| Calendar | getDate()Deprecated.  Always throws a  ValueFormatException. | 
| BigDecimal | getDecimal()Deprecated.  Always throws a  ValueFormatException. | 
| double | getDouble()Deprecated.  Always throws a  ValueFormatException. | 
| long | getLong()Deprecated.  Always throws a  ValueFormatException. | 
| InputStream | getStream()Deprecated.  Returns the stream representation of this value. | 
| String | getString()Deprecated.  Returns the string representation of the path value. | 
| int | getType()Deprecated.  Returns  PropertyType.PATH. | 
| protected ValueFormatException | getValueFormatException(String destType)Deprecated.  Returns a  ValueFormatExceptionwith a message indicating
 what kind of type conversion is not supported. | 
| int | hashCode()Deprecated.  Returns a hash code that's in line with how the  equals(Object)method is implemented. | 
| String | toString()Deprecated.  Returns a string representation of this value. | 
protected PathValue(String value) throws ValueFormatException
value.ValueFormatExceptionpublic int getType()
PropertyType.PATH.public String getString() throws ValueFormatException, RepositoryException
public final InputStream getStream() throws RepositoryException
Binary instance
 returned by getBinary().getStream in interface ValueRepositoryException - if the stream can not be createdpublic Binary getBinary() throws RepositoryException
Value.getString(). SubclassesgetBinary in interface ValueRepositoryExceptionpublic boolean getBoolean()
                   throws ValueFormatException
ValueFormatException. Implementations should
 overwrite if conversion to boolean is supported.getBoolean in interface ValueValueFormatException - If the value cannot be converted to a
      boolean.public Calendar getDate() throws ValueFormatException
ValueFormatException. Implementations should
 overwrite if conversion to Calender is supported.getDate in interface ValueValueFormatException - If the value cannot be converted to a
      Calendar instance.public BigDecimal getDecimal() throws RepositoryException
ValueFormatException. Implementations should
 overwrite if conversion to a BigDecimal is supported.getDecimal in interface ValueValueFormatException - If the value cannot be converted to a
      BigDecimal.RepositoryExceptionpublic double getDouble()
                 throws ValueFormatException
ValueFormatException. Implementations should
 overwrite if conversion to double is supported.getDouble in interface ValueValueFormatException - If the value cannot be converted to a
      double.public long getLong()
             throws ValueFormatException
ValueFormatException. Implementations should
 overwrite if conversion to long is supported.getLong in interface ValueValueFormatException - If the value cannot be converted to a
      long.protected ValueFormatException getValueFormatException(String destType)
ValueFormatException with a message indicating
 what kind of type conversion is not supported.destType - The name of the value type to which this value cannot
      be converted.public boolean equals(Object object)
public int hashCode()
equals(Object)
 method is implemented.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.