|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.value.AbstractQValue
org.apache.jackrabbit.core.value.InternalValue
public class InternalValue
InternalValue represents the internal format of a property value.
| Internal Format | |
| String | |
| Long | |
| Double | |
| Calendar | |
| Boolean | |
| Name | |
| Path | |
| URI | |
| BigDecimal | |
| BLOBFileValue | |
NodeId |
| Field Summary | |
|---|---|
static InternalValue[] |
EMPTY_ARRAY
|
| Fields inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValue |
|---|
type, val |
| Method Summary | |
|---|---|
static InternalValue |
create(BigDecimal value)
|
static InternalValue |
create(boolean value)
|
static InternalValue |
create(byte[] value)
|
static InternalValue |
create(Calendar value)
|
static InternalValue |
create(DataStore store,
String id)
Create a binary object with the given identifier. |
static InternalValue |
create(double value)
|
static InternalValue |
create(FileSystemResource value)
|
static InternalValue |
create(InputStream value)
|
static InternalValue |
create(InputStream value,
DataStore store)
Create an internal value that is stored in the data store (if enabled). |
static InternalValue |
create(long value)
|
static InternalValue |
create(Name value)
|
static InternalValue[] |
create(Name[] values)
|
static InternalValue |
create(NodeId value)
|
static InternalValue |
create(NodeId value,
boolean weak)
|
static InternalValue |
create(Path value)
|
static InternalValue |
create(QValue value)
|
static InternalValue[] |
create(QValue[] values)
|
static InternalValue |
create(String value)
|
static InternalValue |
create(Value value,
NamePathResolver resolver)
Create a new internal value from the given JCR value. |
static InternalValue |
create(Value value,
NamePathResolver resolver,
DataStore store)
Create a new internal value from the given JCR value. |
InternalValue |
createCopy()
Create a copy of this object. |
static InternalValue |
createTemporary(InputStream value)
Create an internal value that is backed by a temporary file. |
void |
deleteBinaryResource()
Delete persistent binary objects. |
void |
discard()
|
Binary |
getBinary()
|
Calendar |
getDate()
|
long |
getLength()
|
NodeId |
getNodeId()
|
InputStream |
getStream()
|
String |
getString()
|
void |
store(DataStore dataStore)
Store a value in the data store. |
String |
toString()
Returns the string representation of this internal value. |
static InternalValue |
valueOf(String s,
int type)
Parses the given string as an InternalValue of the
specified type. |
| Methods inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValue |
|---|
equals, getBoolean, getCalendar, getDecimal, getDouble, getLong, getName, getPath, getType, getURI, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final InternalValue[] EMPTY_ARRAY
| Method Detail |
|---|
public static InternalValue create(Value value,
NamePathResolver resolver)
throws ValueFormatException,
RepositoryException
value - the JCR valueresolver -
RepositoryException
ValueFormatException
public static InternalValue create(Value value,
NamePathResolver resolver,
DataStore store)
throws ValueFormatException,
RepositoryException
value - the JCR valueresolver - store - the data store
RepositoryException
ValueFormatException
public static InternalValue create(QValue value)
throws RepositoryException
RepositoryException
public static InternalValue[] create(QValue[] values)
throws RepositoryException
RepositoryExceptionpublic static InternalValue create(String value)
value -
public static InternalValue create(long value)
value -
public static InternalValue create(double value)
value -
public static InternalValue create(Calendar value)
value -
public static InternalValue create(BigDecimal value)
value -
public static InternalValue create(boolean value)
value -
public static InternalValue create(byte[] value)
value -
public static InternalValue createTemporary(InputStream value)
throws RepositoryException
value - the stream
RepositoryException
public static InternalValue create(InputStream value,
DataStore store)
throws RepositoryException
value - the input streamstore -
RepositoryException
public static InternalValue create(InputStream value)
throws RepositoryException
value -
IOException
RepositoryException
public static InternalValue create(FileSystemResource value)
throws IOException
value -
IOException
public static InternalValue create(DataStore store,
String id)
store - the data storeid - the identifier
public static InternalValue create(Name value)
value -
public static InternalValue[] create(Name[] values)
values -
public static InternalValue create(Path value)
value -
public static InternalValue create(NodeId value)
value -
public static InternalValue create(NodeId value,
boolean weak)
value - weak -
public NodeId getNodeId()
public Calendar getDate()
public InternalValue createCopy()
throws RepositoryException
RepositoryException
public static InternalValue valueOf(String s,
int type)
InternalValue of the
specified type. The string must be in the format returned by the
InternalValue.toString() method.
s - a String containing the InternalValue
representation to be parsed.type -
InternalValue represented by the arguments
IllegalArgumentException - if the specified string can not be parsed
as an InternalValue of the
specified type.toString()public String toString()
toString in class AbstractQValue
public void store(DataStore dataStore)
throws RepositoryException
dataStore - the data store
RepositoryException
public long getLength()
throws RepositoryException
getLength in interface QValuegetLength in class AbstractQValueRepositoryExceptionQValue.getLength()
public String getString()
throws RepositoryException
getString in interface QValuegetString in class AbstractQValueRepositoryExceptionQValue.getString()
public InputStream getStream()
throws RepositoryException
RepositoryExceptionQValue.getStream()
public Binary getBinary()
throws RepositoryException
getBinary in interface QValuegetBinary in class AbstractQValueRepositoryExceptionQValue.getBinary()public void discard()
discard in interface QValuediscard in class AbstractQValueQValue.discard()public void deleteBinaryResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||