|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.ItemImpl org.apache.jackrabbit.core.PropertyImpl
PropertyImpl
implements the Property
interface.
Field Summary |
Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
id, itemMgr, listeners, rep, session, state, stateMgr, status, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
Method Summary | |
void |
accept(ItemVisitor visitor)
|
protected void |
checkSetValue(boolean multipleValues)
Checks various pre-conditions that are common to all setValue() methods. |
boolean |
getBoolean()
|
Calendar |
getDate()
|
PropertyDefinition |
getDefinition()
|
double |
getDouble()
|
long |
getLength()
|
protected long |
getLength(InternalValue value)
Determines the length of the given value. |
long[] |
getLengths()
|
long |
getLong()
|
String |
getName()
|
Node |
getNode()
|
protected ItemState |
getOrCreateTransientItemState()
|
Node |
getParent()
|
QName |
getQName()
Same as except that
this method returns a QName instead of a
String . |
InputStream |
getStream()
|
String |
getString()
|
int |
getType()
|
Value |
getValue()
|
Value[] |
getValues()
|
InternalValue |
internalGetValue()
Returns the internal values of this property |
InternalValue[] |
internalGetValues()
Returns the internal values of this property |
protected void |
internalSetValue(InternalValue[] values,
int type)
|
boolean |
isNode()
|
protected void |
makePersistent()
|
protected void |
restoreTransient(PropertyState transientState)
|
void |
setValue(boolean b)
|
void |
setValue(Calendar date)
|
void |
setValue(double number)
|
void |
setValue(InputStream stream)
|
void |
setValue(long number)
|
void |
setValue(Node target)
|
void |
setValue(QName name)
Same as except that
this method takes a QName instead of a String
value. |
void |
setValue(QName[] names)
Same as except that
this method takes an array of QName instead of
String values. |
void |
setValue(String string)
|
void |
setValue(String[] strings)
|
void |
setValue(Value value)
|
void |
setValue(Value[] values)
|
Methods inherited from class org.apache.jackrabbit.core.ItemImpl |
getAncestor, getDepth, getId, getPath, getPrimaryPath, getSession, internalRemove, isModified, isNew, isSame, isTransactionalNew, isTransient, notifyDestroyed, notifyInvalidated, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved, stateCreated, stateDestroyed, stateDiscarded, stateModified |
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, getPath, getSession, isModified, isNew, isSame, refresh, remove, save |
Method Detail |
protected ItemState getOrCreateTransientItemState() throws RepositoryException
getOrCreateTransientItemState
in class ItemImpl
RepositoryException
protected void makePersistent() throws InvalidItemStateException
makePersistent
in class ItemImpl
InvalidItemStateException
protected void restoreTransient(PropertyState transientState) throws RepositoryException
RepositoryException
protected long getLength(InternalValue value) throws RepositoryException
value
- value whose length should be determined
RepositoryException
- if an error occursProperty.getLength()
,
Property.getLengths()
protected void checkSetValue(boolean multipleValues) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue()
methods. The checks performed are:
multipleValues
- flag indicating whether the property is about to
be set to an array of values
ValueFormatException
- if a single-valued property is set to an
array of values (and vice versa)
VersionException
- if the parent node is not checked-out
LockException
- if the parent node is locked by somebody else
ConstraintViolationException
- if the property is protected
RepositoryException
- if another error occursProperty.setValue(javax.jcr.Value)
protected void internalSetValue(InternalValue[] values, int type) throws ConstraintViolationException, RepositoryException
values
- type
-
ConstraintViolationException
RepositoryException
public void setValue(QName name) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
Property.setValue(String)
except that
this method takes a QName
instead of a String
value.
name
-
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(QName[] names) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
Property.setValue(String[])
except that
this method takes an array of QName
instead of
String
values.
names
-
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public QName getQName()
Item.getName()
except that
this method returns a QName
instead of a
String
.
getQName
in class ItemImpl
QName
public InternalValue[] internalGetValues() throws RepositoryException
RepositoryException
public InternalValue internalGetValue() throws RepositoryException
RepositoryException
public Value[] getValues() throws ValueFormatException, RepositoryException
getValues
in interface Property
ValueFormatException
RepositoryException
public Value getValue() throws ValueFormatException, RepositoryException
getValue
in interface Property
ValueFormatException
RepositoryException
public String getString() throws ValueFormatException, RepositoryException
getString
in interface Property
ValueFormatException
RepositoryException
public InputStream getStream() throws ValueFormatException, RepositoryException
getStream
in interface Property
ValueFormatException
RepositoryException
public long getLong() throws ValueFormatException, RepositoryException
getLong
in interface Property
ValueFormatException
RepositoryException
public double getDouble() throws ValueFormatException, RepositoryException
getDouble
in interface Property
ValueFormatException
RepositoryException
public Calendar getDate() throws ValueFormatException, RepositoryException
getDate
in interface Property
ValueFormatException
RepositoryException
public boolean getBoolean() throws ValueFormatException, RepositoryException
getBoolean
in interface Property
ValueFormatException
RepositoryException
public Node getNode() throws ValueFormatException, RepositoryException
getNode
in interface Property
ValueFormatException
RepositoryException
public void setValue(Calendar date) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(double number) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(InputStream stream) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(String string) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(String[] strings) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(boolean b) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Node target) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(long number) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
RepositoryException
public void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue
in interface Property
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
public long getLength() throws ValueFormatException, RepositoryException
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
getType
in interface Property
RepositoryException
public boolean isNode()
isNode
in interface Item
isNode
in class ItemImpl
public String getName() throws RepositoryException
getName
in interface Item
getName
in class ItemImpl
RepositoryException
public void accept(ItemVisitor visitor) throws RepositoryException
accept
in interface Item
accept
in class ItemImpl
RepositoryException
public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException
getParent
in interface Item
getParent
in class ItemImpl
ItemNotFoundException
AccessDeniedException
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |