org.apache.jackrabbit.jcr2spi
Class PropertyImpl

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.ItemImpl
      extended by org.apache.jackrabbit.jcr2spi.PropertyImpl
All Implemented Interfaces:
javax.jcr.Item, javax.jcr.Property, ItemStateLifeCycleListener

public class PropertyImpl
extends ItemImpl
implements javax.jcr.Property

PropertyImpl...


Field Summary
static int UNDEFINED_PROPERTY_LENGTH
           
 
Fields inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl
listeners, session
 
Constructor Summary
PropertyImpl(SessionImpl session, PropertyState state, ItemLifeCycleListener[] listeners)
           
 
Method Summary
 void accept(javax.jcr.ItemVisitor visitor)
          Implementation of Item.accept(javax.jcr.ItemVisitor) for property.
 boolean getBoolean()
           
 Calendar getDate()
           
 javax.jcr.nodetype.PropertyDefinition getDefinition()
           
 double getDouble()
           
 long getLength()
           
 long[] getLengths()
           
 long getLong()
           
 String getName()
           
 javax.jcr.Node getNode()
           
 InputStream getStream()
           
 String getString()
           
 int getType()
           
 javax.jcr.Value getValue()
           
 javax.jcr.Value[] getValues()
           
 boolean isNode()
          Returns false
 void setValue(boolean value)
           
 void setValue(Calendar value)
           
 void setValue(double value)
           
 void setValue(InputStream value)
           
 void setValue(long value)
           
 void setValue(javax.jcr.Node value)
           
 void setValue(String value)
           
 void setValue(String[] values)
           
 void setValue(javax.jcr.Value value)
           
 void setValue(javax.jcr.Value[] values)
           
 
Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged
 
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, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
 

Field Detail

UNDEFINED_PROPERTY_LENGTH

public static final int UNDEFINED_PROPERTY_LENGTH
See Also:
Constant Field Values
Constructor Detail

PropertyImpl

public PropertyImpl(SessionImpl session,
                    PropertyState state,
                    ItemLifeCycleListener[] listeners)
Method Detail

getName

public String getName()
               throws javax.jcr.RepositoryException
Specified by:
getName in interface javax.jcr.Item
Specified by:
getName in class ItemImpl
Throws:
javax.jcr.RepositoryException
See Also:
Item.getName()

accept

public void accept(javax.jcr.ItemVisitor visitor)
            throws javax.jcr.RepositoryException
Implementation of Item.accept(javax.jcr.ItemVisitor) for property.

Specified by:
accept in interface javax.jcr.Item
Specified by:
accept in class ItemImpl
Parameters:
visitor -
Throws:
javax.jcr.RepositoryException
See Also:
Item.accept(javax.jcr.ItemVisitor)

isNode

public boolean isNode()
Returns false

Specified by:
isNode in interface javax.jcr.Item
Specified by:
isNode in class ItemImpl
Returns:
false
See Also:
Item.isNode()

setValue

public void setValue(javax.jcr.Value value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(javax.jcr.Value)

setValue

public void setValue(javax.jcr.Value[] values)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(javax.jcr.Value[])

setValue

public void setValue(String value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.nodetype.ConstraintViolationException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Property.setValue(String)

setValue

public void setValue(String[] values)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(String[])

setValue

public void setValue(InputStream value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(InputStream)

setValue

public void setValue(long value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(long)

setValue

public void setValue(double value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(double)

setValue

public void setValue(Calendar value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(Calendar)

setValue

public void setValue(boolean value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.nodetype.ConstraintViolationException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Property.setValue(boolean)

setValue

public void setValue(javax.jcr.Node value)
              throws javax.jcr.ValueFormatException,
                     javax.jcr.version.VersionException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
setValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Property.setValue(Node)

getValue

public javax.jcr.Value getValue()
                         throws javax.jcr.ValueFormatException,
                                javax.jcr.RepositoryException
Specified by:
getValue in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getValue()

getValues

public javax.jcr.Value[] getValues()
                            throws javax.jcr.ValueFormatException,
                                   javax.jcr.RepositoryException
Specified by:
getValues in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getValues()

getString

public String getString()
                 throws javax.jcr.ValueFormatException,
                        javax.jcr.RepositoryException
Specified by:
getString in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getString()

getStream

public InputStream getStream()
                      throws javax.jcr.ValueFormatException,
                             javax.jcr.RepositoryException
Specified by:
getStream in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getStream()

getLong

public long getLong()
             throws javax.jcr.ValueFormatException,
                    javax.jcr.RepositoryException
Specified by:
getLong in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getLong()

getDouble

public double getDouble()
                 throws javax.jcr.ValueFormatException,
                        javax.jcr.RepositoryException
Specified by:
getDouble in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getDouble()

getDate

public Calendar getDate()
                 throws javax.jcr.ValueFormatException,
                        javax.jcr.RepositoryException
Specified by:
getDate in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getDate()

getBoolean

public boolean getBoolean()
                   throws javax.jcr.ValueFormatException,
                          javax.jcr.RepositoryException
Specified by:
getBoolean in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getBoolean()

getNode

public javax.jcr.Node getNode()
                       throws javax.jcr.ValueFormatException,
                              javax.jcr.RepositoryException
Specified by:
getNode in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getNode()

getLength

public long getLength()
               throws javax.jcr.ValueFormatException,
                      javax.jcr.RepositoryException
Specified by:
getLength in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getLength()

getLengths

public long[] getLengths()
                  throws javax.jcr.ValueFormatException,
                         javax.jcr.RepositoryException
Specified by:
getLengths in interface javax.jcr.Property
Throws:
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
See Also:
Property.getLengths()

getDefinition

public javax.jcr.nodetype.PropertyDefinition getDefinition()
                                                    throws javax.jcr.RepositoryException
Specified by:
getDefinition in interface javax.jcr.Property
Throws:
javax.jcr.RepositoryException
See Also:
Property.getDefinition()

getType

public int getType()
            throws javax.jcr.RepositoryException
Specified by:
getType in interface javax.jcr.Property
Throws:
javax.jcr.RepositoryException
See Also:
Property.getType()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.