public abstract class AbstractQValue extends Object implements org.apache.jackrabbit.spi.QValue, Serializable
AbstractQValue...| Modifier and Type | Field and Description |
|---|---|
protected int |
type |
protected Object |
val |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQValue(BigDecimal value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(Boolean value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(Calendar value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(Double value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(Long value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(org.apache.jackrabbit.spi.Name value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(Object value,
int type)
Create a new
AbstractQValue. |
protected |
AbstractQValue(org.apache.jackrabbit.spi.Path value)
Create a new
AbstractQValue. |
protected |
AbstractQValue(String value,
int type)
Create a new
AbstractQValue. |
protected |
AbstractQValue(URI value)
Create a new
AbstractQValue. |
| Modifier and Type | Method and Description |
|---|---|
void |
discard() |
boolean |
equals(Object obj)
Default implementation of the equals method.
|
Binary |
getBinary()
This implementation creates a binary instance that uses
QValue.getStream() and skipping on the given stream as its underlying
mechanism to provide random access defined on Binary. |
boolean |
getBoolean() |
Calendar |
getCalendar() |
BigDecimal |
getDecimal() |
double |
getDouble() |
long |
getLength() |
long |
getLong() |
org.apache.jackrabbit.spi.Name |
getName() |
org.apache.jackrabbit.spi.Path |
getPath() |
String |
getString() |
int |
getType() |
URI |
getURI() |
int |
hashCode()
Default calculation of the hashCode.
|
String |
toString()
Returns the string representation of this internal value.
|
protected final Object val
protected final int type
protected AbstractQValue(Object value, int type)
AbstractQValue.value - The value.type - The property type.IllegalArgumentException - if the passed value
is null.protected AbstractQValue(String value, int type)
AbstractQValue.value - type - IllegalArgumentException - if the passed value
is null or if the type is neither STRING nor
REFERENCE/WEAKREFERENCE.protected AbstractQValue(Long value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(Double value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(Boolean value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(Calendar value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(org.apache.jackrabbit.spi.Name value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(org.apache.jackrabbit.spi.Path value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(BigDecimal value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.protected AbstractQValue(URI value)
AbstractQValue.value - IllegalArgumentException - if the passed value
is null.public int getType()
getType in interface org.apache.jackrabbit.spi.QValueQValue.getType()public long getLength()
throws RepositoryException
getLength in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getLength()public org.apache.jackrabbit.spi.Name getName()
throws RepositoryException
getName in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getName()public Calendar getCalendar() throws RepositoryException
getCalendar in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getCalendar()public BigDecimal getDecimal() throws RepositoryException
getDecimal in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getDecimal()public URI getURI() throws RepositoryException
getURI in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getURI()public double getDouble()
throws RepositoryException
getDouble in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getDouble()public long getLong()
throws RepositoryException
getLong in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getLong()public boolean getBoolean()
throws RepositoryException
getBoolean in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getBoolean()public org.apache.jackrabbit.spi.Path getPath()
throws RepositoryException
getPath in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getPath()public String getString() throws RepositoryException
getString in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getPath()public Binary getBinary() throws RepositoryException
QValue.getStream() and skipping on the given stream as its underlying
mechanism to provide random access defined on Binary.getBinary in interface org.apache.jackrabbit.spi.QValueRepositoryExceptionQValue.getBinary()public void discard()
discard in interface org.apache.jackrabbit.spi.QValueQValue.discard()public String toString()
public boolean equals(Object obj)
equals in class Objectobj - Object.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.