|
||||||||||
| 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(Name value)
Create a new AbstractQValue. |
protected |
AbstractQValue(Object value,
int type)
Create a new AbstractQValue. |
protected |
AbstractQValue(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()
|
Name |
getName()
|
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 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(Name value)
AbstractQValue.
value -
IllegalArgumentException - if the passed value
is null.protected AbstractQValue(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 QValueQValue.getType()
public long getLength()
throws RepositoryException
getLength in interface QValueRepositoryExceptionQValue.getLength()
public Name getName()
throws RepositoryException
getName in interface QValueRepositoryExceptionQValue.getName()
public Calendar getCalendar()
throws RepositoryException
getCalendar in interface QValueRepositoryExceptionQValue.getCalendar()
public BigDecimal getDecimal()
throws RepositoryException
getDecimal in interface QValueRepositoryExceptionQValue.getDecimal()
public URI getURI()
throws RepositoryException
getURI in interface QValueRepositoryExceptionQValue.getURI()
public double getDouble()
throws RepositoryException
getDouble in interface QValueRepositoryExceptionQValue.getDouble()
public long getLong()
throws RepositoryException
getLong in interface QValueRepositoryExceptionQValue.getLong()
public boolean getBoolean()
throws RepositoryException
getBoolean in interface QValueRepositoryExceptionQValue.getBoolean()
public Path getPath()
throws RepositoryException
getPath in interface QValueRepositoryExceptionQValue.getPath()
public String getString()
throws RepositoryException
getString in interface 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 QValueRepositoryExceptionQValue.getBinary()public void discard()
discard in interface 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 | |||||||||