public class ValueImpl
extends java.lang.Object
implements javax.jcr.Value
| Constructor and Description |
|---|
ValueImpl(SessionImpl session,
int datatype,
java.lang.Object value)
Constuct
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBoolean() |
java.util.Calendar |
getDate() |
double |
getDouble() |
long |
getLong() |
javax.jcr.Value |
getProxy()
Create a proxied JCR Value
|
java.io.InputStream |
getStream() |
java.lang.String |
getString() |
int |
getType() |
static java.lang.Object |
getValue(JCRTypeConverter typeConverter,
int requiredType,
javax.jcr.Value value)
Get typed value
|
static java.lang.Object |
getValue(javax.jcr.Value value)
Get value
|
int |
hashCode() |
public ValueImpl(SessionImpl session, int datatype, java.lang.Object value)
value - value to wrappublic javax.jcr.Value getProxy()
public java.lang.String getString()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getString in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic java.io.InputStream getStream()
throws java.lang.IllegalStateException,
javax.jcr.RepositoryException
getStream in interface javax.jcr.Valuejava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic long getLong()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getLong in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic double getDouble()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getDouble in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic java.util.Calendar getDate()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getDate in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic boolean getBoolean()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getBoolean in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryExceptionpublic int getType()
getType in interface javax.jcr.Valuepublic static java.lang.Object getValue(javax.jcr.Value value)
throws javax.jcr.RepositoryException
value - the value wrapper to extract fromjavax.jcr.RepositoryExceptionpublic static java.lang.Object getValue(JCRTypeConverter typeConverter, int requiredType, javax.jcr.Value value) throws javax.jcr.RepositoryException
value - the value to extract fromjavax.jcr.RepositoryExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.