| java.lang.Object com.caucho.jcr.base.BaseItem com.caucho.jcr.base.BaseProperty
All known Subclasses: com.caucho.jcr.file.FileDataProperty,
BaseProperty | public class BaseProperty extends BaseItem implements Property(Code) | | Represents a property item in the repository.
|
Method Summary | |
public boolean | getBoolean() Returns the property value as a boolean. | public Calendar | getDate() Returns the property value as a date. | public PropertyDefinition | getDefinition() Returns the property's definition. | public double | getDouble() Returns the property value as a double. | public long | getLength() Returns the size of the property. | public long[] | getLengths() Returns the size of all the properties. | public long | getLong() Returns the property value as a long. | public Node | getNode() Returns the property value as a node reference. | public InputStream | getStream() Returns the property value as a binary stream. | public String | getString() Returns the property value as a string. | public int | getType() Returns the property's base type. | public Value | getValue() Returns the property value. | public Value[] | getValues() Returns the property value as a value array. | public void | setValue(Value value) Sets the property value. | public void | setValue(Value[] values) Sets the property value to a value array. | public void | setValue(String value) Sets the property value to a string. | public void | setValue(String[] values) Sets the property value to a string array. | public void | setValue(InputStream value) Sets the property value to a binary chunk. | public void | setValue(long value) Sets the property value to a long. | public void | setValue(double value) Sets the property value to a double. | public void | setValue(Calendar value) Sets the property value to a date. | public void | setValue(boolean value) Sets the property value to a boolean. | public void | setValue(Node value) Sets the property value to a node reference. |
BaseProperty | protected BaseProperty(Value value)(Code) | | |
getBoolean | public boolean getBoolean() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a boolean.
|
getDate | public Calendar getDate() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a date.
|
getDefinition | public PropertyDefinition getDefinition() throws RepositoryException(Code) | | Returns the property's definition.
|
getDouble | public double getDouble() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a double.
|
getLength | public long getLength() throws ValueFormatException, RepositoryException(Code) | | Returns the size of the property.
|
getLengths | public long[] getLengths() throws ValueFormatException, RepositoryException(Code) | | Returns the size of all the properties.
|
getLong | public long getLong() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a long.
|
getNode | public Node getNode() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a node reference.
|
getStream | public InputStream getStream() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a binary stream.
|
getString | public String getString() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a string.
|
getType | public int getType() throws RepositoryException(Code) | | Returns the property's base type.
|
getValue | public Value getValue() throws ValueFormatException, RepositoryException(Code) | | Returns the property value.
|
getValues | public Value[] getValues() throws ValueFormatException, RepositoryException(Code) | | Returns the property value as a value array.
|
setValue | public void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value.
|
setValue | public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a value array.
|
setValue | public void setValue(String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a string.
|
setValue | public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a string array.
|
setValue | public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a binary chunk.
|
setValue | public void setValue(long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a long.
|
setValue | public void setValue(double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a double.
|
setValue | public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a date.
|
setValue | public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a boolean.
|
setValue | public void setValue(Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code) | | Sets the property value to a node reference.
|
Methods inherited from com.caucho.jcr.base.BaseItem | public void accept(ItemVisitor visitor) throws RepositoryException(Code)(Java Doc) public Item getAncestor(int depth) throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code)(Java Doc) public int getDepth() throws RepositoryException(Code)(Java Doc) public String getName() throws RepositoryException(Code)(Java Doc) public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code)(Java Doc) public String getPath() throws RepositoryException(Code)(Java Doc) public Session getSession() throws RepositoryException(Code)(Java Doc) public boolean isModified()(Code)(Java Doc) public boolean isNew()(Code)(Java Doc) public boolean isNode()(Code)(Java Doc) public boolean isSame(Item otherItem) throws RepositoryException(Code)(Java Doc) public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException(Code)(Java Doc) public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException(Code)(Java Doc) public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException(Code)(Java Doc)
|
|
|