public abstract class BaseValue extends Object implements javax.jcr.Value
Value
interfaces.Value
,
StringValue
,
LongValue
,
DoubleValue
,
DecimalValue
,
BooleanValue
,
DateValue
,
BinaryValue
,
NameValue
,
PathValue
,
URIValue
,
ReferenceValue
,
WeakReferenceValue
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_ENCODING |
protected InputStream |
stream |
protected int |
type |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
double |
getDouble() |
protected abstract String |
getInternalString()
Returns the internal string representation of this value without modifying
the value state.
|
long |
getLong() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
protected static final String DEFAULT_ENCODING
protected final int type
protected InputStream stream
protected abstract String getInternalString() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
javax.jcr.ValueFormatException
- if the value can not be represented as a
String
or if the value is
null
.javax.jcr.RepositoryException
- if another error occurs.public int getType()
getType
in interface javax.jcr.Value
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 long getLong() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getLong
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
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 double getDouble() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDouble
in interface javax.jcr.Value
javax.jcr.ValueFormatException
IllegalStateException
javax.jcr.RepositoryException
public BigDecimal getDecimal() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDecimal
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 javax.jcr.Binary getBinary() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getBinary
in interface javax.jcr.Value
javax.jcr.ValueFormatException
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
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.