org.apache.sling.commons.testing.jcr
Class MockValue

java.lang.Object
  extended by org.apache.sling.commons.testing.jcr.MockValue
All Implemented Interfaces:
javax.jcr.Value

public class MockValue
extends java.lang.Object
implements javax.jcr.Value


Constructor Summary
MockValue(java.lang.String str)
           
 
Method Summary
 boolean getBoolean()
           
 java.util.Calendar getDate()
           
 double getDouble()
           
 long getLong()
           
 java.io.InputStream getStream()
           
 java.lang.String getString()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockValue

public MockValue(java.lang.String str)
Method Detail

getBoolean

public boolean getBoolean()
                   throws javax.jcr.ValueFormatException,
                          java.lang.IllegalStateException,
                          javax.jcr.RepositoryException
Specified by:
getBoolean in interface javax.jcr.Value
Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException

getDate

public java.util.Calendar getDate()
                           throws javax.jcr.ValueFormatException,
                                  java.lang.IllegalStateException,
                                  javax.jcr.RepositoryException
Specified by:
getDate in interface javax.jcr.Value
Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException

getDouble

public double getDouble()
                 throws javax.jcr.ValueFormatException,
                        java.lang.IllegalStateException,
                        javax.jcr.RepositoryException
Specified by:
getDouble in interface javax.jcr.Value
Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException

getLong

public long getLong()
             throws javax.jcr.ValueFormatException,
                    java.lang.IllegalStateException,
                    javax.jcr.RepositoryException
Specified by:
getLong in interface javax.jcr.Value
Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException

getStream

public java.io.InputStream getStream()
                              throws java.lang.IllegalStateException,
                                     javax.jcr.RepositoryException
Specified by:
getStream in interface javax.jcr.Value
Throws:
java.lang.IllegalStateException
javax.jcr.RepositoryException

getString

public java.lang.String getString()
                           throws javax.jcr.ValueFormatException,
                                  java.lang.IllegalStateException,
                                  javax.jcr.RepositoryException
Specified by:
getString in interface javax.jcr.Value
Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException

getType

public int getType()
Specified by:
getType in interface javax.jcr.Value


Copyright © 2007-2009. All Rights Reserved.