Class MockValue
java.lang.Object
org.apache.sling.commons.testing.jcr.MockValue
- All Implemented Interfaces:
javax.jcr.Value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jcr.BinarybooleangetDate()doublelonggetLong()intgetType()voidsetDecimal(BigDecimal value) voidsetValue(boolean booleanValue) voidsetValue(double doubleValue) voidsetValue(long longValue) voidsetValue(InputStream stream) voidvoid
-
Constructor Details
-
MockValue
public MockValue() -
MockValue
-
-
Method Details
-
getBoolean
public boolean getBoolean() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException- Specified by:
getBooleanin interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryException
-
getDate
public Calendar getDate() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException- Specified by:
getDatein interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryException
-
getDouble
public double getDouble() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException- Specified by:
getDoublein interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryException
-
getLong
public long getLong() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException- Specified by:
getLongin interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryException
-
getStream
- Specified by:
getStreamin interfacejavax.jcr.Value- Throws:
IllegalStateExceptionjavax.jcr.RepositoryException
-
getString
public String getString() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException- Specified by:
getStringin interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryException
-
getType
public int getType()- Specified by:
getTypein interfacejavax.jcr.Value
-
setValue
-
setValue
public void setValue(boolean booleanValue) -
setValue
-
setValue
public void setValue(double doubleValue) -
setValue
public void setValue(long longValue) -
setValue
-
setDecimal
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException- Specified by:
getBinaryin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException
-
getDecimal
- Specified by:
getDecimalin interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionjavax.jcr.RepositoryException
-