|
|||||||||||
| 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 Itemaccept in class BaseItemRepositoryExceptionpublic boolean isNode()
false. Always returns false.
isNode in interface ItemisNode in class BaseItem
public void setValue(Value value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Value[] values)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(String value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
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 PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(InputStream value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(long value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(double value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Calendar value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(boolean value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Node value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue(getSession().getValueFactory().createValue(value)).
setValue in interface PropertyValueFormatException
VersionException
LockException
RepositoryException
public Value getValue()
throws ValueFormatException,
RepositoryException
getValue in interface PropertyValueFormatException
RepositoryException
public Value[] getValues()
throws ValueFormatException,
RepositoryException
getValues in interface PropertyValueFormatException
RepositoryException
public String getString()
throws ValueFormatException,
RepositoryException
getValue().getString().
getString in interface PropertyValueFormatException
RepositoryException
public InputStream getStream()
throws ValueFormatException,
RepositoryException
getValue().getStream().
getStream in interface PropertyValueFormatException
RepositoryException
public long getLong()
throws ValueFormatException,
RepositoryException
getValue().getLong().
getLong in interface PropertyValueFormatException
RepositoryException
public double getDouble()
throws ValueFormatException,
RepositoryException
getValue().getDouble().
getDouble in interface PropertyValueFormatException
RepositoryException
public Calendar getDate()
throws ValueFormatException,
RepositoryException
getValue().getDate().
getDate in interface PropertyValueFormatException
RepositoryException
public boolean getBoolean()
throws ValueFormatException,
RepositoryException
getValue().getBoolean().
getBoolean in interface PropertyValueFormatException
RepositoryException
public Node getNode()
throws ValueFormatException,
RepositoryException
getSession().getNodeByUUID(getString()).
getNode in interface PropertyValueFormatException
RepositoryException
public long getLength()
throws ValueFormatException,
RepositoryException
getType() and returning
-1 if type is binary or getString().length()
otherwise.
getLength in interface PropertyValueFormatException
RepositoryException
public long[] getLengths()
throws ValueFormatException,
RepositoryException
getLengths in interface PropertyValueFormatException
RepositoryException
public PropertyDefinition getDefinition()
throws RepositoryException
getDefinition in interface PropertyRepositoryException
public int getType()
throws RepositoryException
getValue().getType().
getType in interface PropertyRepositoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||