|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.base.BaseItem
org.apache.jackrabbit.base.BaseProperty
Property base class.
Constructor Summary | |
protected |
BaseProperty()
Protected constructor. |
Method Summary | |
void |
accept(ItemVisitor visitor)
Implemented by calling visitor.visit(this) . |
boolean |
getBoolean()
Implemented by calling getValue().getBoolean() . |
Calendar |
getDate()
Implemented by calling getValue().getDate() . |
PropertyDefinition |
getDefinition()
Not implemented. |
double |
getDouble()
Implemented by calling getValue().getDouble() . |
long |
getLength()
Implemented by calling getType() and returning
-1 if type is binary or getString().length()
otherwise. |
long[] |
getLengths()
|
long |
getLong()
Implemented by calling getValue().getLong() . |
Node |
getNode()
Implemented by calling getSession().getNodeByUUID(getString()) . |
InputStream |
getStream()
Implemented by calling getValue().getStream() . |
String |
getString()
Implemented by calling getValue().getString() . |
int |
getType()
Implemented by calling getValue().getType() . |
Value |
getValue()
Not implemented. |
Value[] |
getValues()
Not implemented. |
boolean |
isNode()
Always returns false . |
void |
setValue(boolean value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(Calendar value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(double value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(InputStream value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(long value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(Node value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(String value)
Implemented by calling setValue(getSession().getValueFactory().createValue(value)) . |
void |
setValue(String[] values)
Implemented by calling setValue(stringValues) with
an array of Values that were created from the given strings by
getSession().getValueFactory().createValue(values[i])) . |
void |
setValue(Value value)
Not implemented. |
void |
setValue(Value[] values)
Not implemented. |
Methods inherited from class org.apache.jackrabbit.base.BaseItem |
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jcr.Item |
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
Constructor Detail |
protected BaseProperty()
Method Detail |
public void accept(ItemVisitor visitor) throws RepositoryException
visitor.visit(this)
.
Does nothing.
accept
in interface Item
accept
in class BaseItem
RepositoryException
public boolean isNode()
false
. Always returns false
.
isNode
in interface Item
isNode
in class BaseItem
public void setValue(Value value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(String value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(stringValues)
with
an array of Values that were created from the given strings by
getSession().getValueFactory().createValue(values[i]))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(long value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(double value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Node value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue(getSession().getValueFactory().createValue(value))
.
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public Value getValue() throws ValueFormatException, RepositoryException
getValue
in interface Property
ValueFormatException
RepositoryException
public Value[] getValues() throws ValueFormatException, RepositoryException
getValues
in interface Property
ValueFormatException
RepositoryException
public String getString() throws ValueFormatException, RepositoryException
getValue().getString()
.
getString
in interface Property
ValueFormatException
RepositoryException
public InputStream getStream() throws ValueFormatException, RepositoryException
getValue().getStream()
.
getStream
in interface Property
ValueFormatException
RepositoryException
public long getLong() throws ValueFormatException, RepositoryException
getValue().getLong()
.
getLong
in interface Property
ValueFormatException
RepositoryException
public double getDouble() throws ValueFormatException, RepositoryException
getValue().getDouble()
.
getDouble
in interface Property
ValueFormatException
RepositoryException
public Calendar getDate() throws ValueFormatException, RepositoryException
getValue().getDate()
.
getDate
in interface Property
ValueFormatException
RepositoryException
public boolean getBoolean() throws ValueFormatException, RepositoryException
getValue().getBoolean()
.
getBoolean
in interface Property
ValueFormatException
RepositoryException
public Node getNode() throws ValueFormatException, RepositoryException
getSession().getNodeByUUID(getString())
.
getNode
in interface Property
ValueFormatException
RepositoryException
public long getLength() throws ValueFormatException, RepositoryException
getType()
and returning
-1
if type is binary or getString().length()
otherwise.
getLength
in interface Property
ValueFormatException
RepositoryException
public long[] getLengths() throws ValueFormatException, RepositoryException
getLengths
in interface Property
ValueFormatException
RepositoryException
public PropertyDefinition getDefinition() throws RepositoryException
getDefinition
in interface Property
RepositoryException
public int getType() throws RepositoryException
getValue().getType()
.
getType
in interface Property
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |