id, itemMgr, sessionContext, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMALJCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor) |
protected void |
checkSetValue(boolean multipleValues)
Checks various pre-conditions that are common to all
setValue() methods. |
Binary |
getBinary()
Wrapper around
getValue() |
boolean |
getBoolean()
Wrapper around
getValue() |
Calendar |
getDate()
Wrapper around
getValue() |
BigDecimal |
getDecimal()
Wrapper around
getValue() |
PropertyDefinition |
getDefinition() |
double |
getDouble()
Wrapper around
getValue() |
long |
getLength() |
protected long |
getLength(InternalValue value)
Determines the length of the given value.
|
long[] |
getLengths() |
long |
getLong()
Wrapper around
getValue() |
String |
getName() |
Node |
getNode() |
protected ItemState |
getOrCreateTransientItemState() |
Node |
getParent() |
protected Node |
getParent(boolean checkPermission) |
Property |
getProperty() |
Name |
getQName()
|
InputStream |
getStream()
Wrapper around
getValue() |
String |
getString()
Wrapper around
getValue() |
int |
getType() |
Value |
getValue() |
Value[] |
getValues() |
InternalValue |
internalGetValue()
Returns the internal value of a single-valued property.
|
InternalValue[] |
internalGetValues()
Returns the internal values of a multi-valued property.
|
protected void |
internalSetValue(InternalValue[] values,
int type) |
boolean |
isMultiple() |
boolean |
isNode() |
protected void |
makePersistent() |
protected void |
onRedefine(QPropertyDefinition def) |
protected void |
restoreTransient(PropertyState transientState) |
void |
setValue(BigDecimal value)
Wrapper around
setValue(Value) |
void |
setValue(Binary value)
Wrapper around
setValue(Value) |
void |
setValue(boolean value)
Wrapper around
setValue(Value) |
void |
setValue(Calendar value)
Wrapper around
setValue(Value) |
void |
setValue(double value)
Wrapper around
setValue(Value) |
void |
setValue(InputStream value)
Wrapper around
setValue(Value) |
void |
setValue(long value)
Wrapper around
setValue(Value) |
void |
setValue(Name name)
|
void |
setValue(Name[] names)
Same as
except that
this method takes an array of Name instead of
String values. |
void |
setValue(Node value)
Wrapper around
setValue(Value) |
void |
setValue(String value)
Wrapper around
setValue(Value) |
void |
setValue(String[] strings)
Wrapper around
setValue(Value[]) |
void |
setValue(Value value) |
void |
setValue(Value[] values) |
void |
setValue(Value[] values,
int valueType)
Sets the values of this property.
|
String |
toString()
Return a string representation of this property for diagnostic purposes.
|
getAncestor, getDepth, getId, getPath, getPrimaryPath, getQName, getSession, getType, getValueFactory, getValues, isModified, isNew, isSame, isTransactionalNew, isTransient, itemSanityCheck, perform, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAncestor, getDepth, getPath, getSession, isModified, isNew, isSame, refresh, remove, saveprotected ItemState getOrCreateTransientItemState() throws RepositoryException
getOrCreateTransientItemState in class ItemImplRepositoryExceptionprotected void makePersistent()
throws InvalidItemStateException
makePersistent in class ItemImplInvalidItemStateExceptionprotected void restoreTransient(PropertyState transientState) throws RepositoryException
RepositoryExceptionprotected void onRedefine(QPropertyDefinition def) throws RepositoryException
RepositoryExceptionprotected long getLength(InternalValue value) throws RepositoryException
value - value whose length should be determinedRepositoryException - 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 valuesValueFormatException - if a single-valued property is set to an
array of values (and vice versa)VersionException - if the parent node is not checked-outLockException - if the parent node is locked by somebody elseConstraintViolationException - if the property is protectedRepositoryException - if another error occursProperty.setValue(javax.jcr.Value)protected void internalSetValue(InternalValue[] values, int type) throws ConstraintViolationException, RepositoryException
values - type - ConstraintViolationExceptionRepositoryExceptionprotected Node getParent(boolean checkPermission) throws RepositoryException
RepositoryExceptionpublic void setValue(Name name) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
name - ValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionpublic void setValue(Name[] names) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
Property.setValue(String[]) except that
this method takes an array of Name instead of
String values.names - ValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionpublic Name getQName()
public InternalValue[] internalGetValues() throws RepositoryException
ValueFormatException - if this property is not multi-valuedRepositoryExceptionpublic InternalValue internalGetValue() throws RepositoryException
ValueFormatException - if this property is not single-valuedRepositoryExceptionpublic Value[] getValues() throws RepositoryException
getValues in interface PropertyRepositoryExceptionpublic Value getValue() throws RepositoryException
getValue in interface PropertyRepositoryExceptionpublic String getString() throws RepositoryException
getValue()getString in interface PropertyRepositoryExceptionpublic InputStream getStream() throws RepositoryException
getValue()getStream in interface PropertyRepositoryExceptionpublic long getLong()
throws RepositoryException
getValue()getLong in interface PropertyRepositoryExceptionpublic double getDouble()
throws RepositoryException
getValue()getDouble in interface PropertyRepositoryExceptionpublic Calendar getDate() throws RepositoryException
getValue()getDate in interface PropertyRepositoryExceptionpublic boolean getBoolean()
throws RepositoryException
getValue()getBoolean in interface PropertyRepositoryExceptionpublic Node getNode() throws ValueFormatException, RepositoryException
getNode in interface PropertyValueFormatExceptionRepositoryExceptionpublic Property getProperty() throws RepositoryException
getProperty in interface PropertyRepositoryExceptionpublic BigDecimal getDecimal() throws RepositoryException
getValue()getDecimal in interface PropertyRepositoryExceptionpublic void setValue(BigDecimal value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic Binary getBinary() throws RepositoryException
getValue()getBinary in interface PropertyRepositoryExceptionpublic void setValue(Binary value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(Calendar value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(double value)
throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(InputStream value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(String value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(String[] strings) throws RepositoryException
setValue(Value[])setValue in interface PropertyRepositoryExceptionpublic void setValue(boolean value)
throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(Node value) throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(long value)
throws RepositoryException
setValue(Value)setValue in interface PropertyRepositoryExceptionpublic void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionpublic void setValue(Value[] values) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(Value[] values, int valueType) throws RepositoryException
values - property values (possibly null)valueType - default value type if not set in the node type,
may be PropertyType.UNDEFINEDRepositoryException - if the property values could not be setpublic long getLength()
throws RepositoryException
getLength in interface PropertyRepositoryExceptionpublic long[] getLengths()
throws RepositoryException
getLengths in interface PropertyRepositoryExceptionpublic PropertyDefinition getDefinition() throws RepositoryException
getDefinition in interface PropertyRepositoryExceptionpublic int getType()
throws RepositoryException
getType in interface PropertyRepositoryExceptionpublic boolean isMultiple()
throws RepositoryException
isMultiple in interface PropertyRepositoryExceptionpublic boolean isNode()
public String getName() throws RepositoryException
getName in interface ItemgetName in class ItemImplRepositoryExceptionpublic void accept(ItemVisitor visitor) throws RepositoryException
accept in interface Itemaccept in class ItemImplRepositoryExceptionpublic Node getParent() throws RepositoryException
getParent in interface ItemgetParent in class ItemImplRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.