public class MockValue extends Object implements javax.jcr.Value
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
double |
getDouble() |
long |
getLong() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
void |
setDecimal(BigDecimal value) |
void |
setValue(boolean booleanValue) |
void |
setValue(Calendar calendarValue) |
void |
setValue(double doubleValue) |
void |
setValue(InputStream stream) |
void |
setValue(long longValue) |
void |
setValue(String stringValue) |
public MockValue()
public MockValue(String str)
public boolean getBoolean()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getBoolean in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic Calendar getDate() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDate in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic double getDouble()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getDouble in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic long getLong()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getLong in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic InputStream getStream() throws IllegalStateException, javax.jcr.RepositoryException
getStream in interface javax.jcr.ValueIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic String getString() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getString in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic int getType()
getType in interface javax.jcr.Valuepublic void setValue(String stringValue)
public void setValue(boolean booleanValue)
public void setValue(Calendar calendarValue)
public void setValue(double doubleValue)
public void setValue(long longValue)
public void setValue(InputStream stream)
public void setDecimal(BigDecimal value)
public javax.jcr.Binary getBinary()
throws javax.jcr.RepositoryException
getBinary in interface javax.jcr.Valuejavax.jcr.RepositoryExceptionpublic BigDecimal getDecimal() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getDecimal in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.