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.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public Calendar getDate() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDate
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public double getDouble() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDouble
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public long getLong() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getLong
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public InputStream getStream() throws IllegalStateException, javax.jcr.RepositoryException
getStream
in interface javax.jcr.Value
IllegalStateException
javax.jcr.RepositoryException
public String getString() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getString
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public int getType()
getType
in interface javax.jcr.Value
public 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.Value
javax.jcr.RepositoryException
public BigDecimal getDecimal() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getDecimal
in interface javax.jcr.Value
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.