|
||||||||||
| 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
public abstract class AbstractQValue
AbstractQValue...
| Field Summary | |
|---|---|
protected int |
type
|
protected Object |
val
|
| Fields inherited from interface org.apache.jackrabbit.spi.QValue |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.spi.QValue |
|---|
getStream |
| Field Detail |
|---|
protected final Object val
protected final int type
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - Object.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||