org.apache.jackrabbit.rmi.remote
Interface RemoteProperty

All Superinterfaces:
Remote, RemoteItem
All Known Implementing Classes:
ServerProperty

public interface RemoteProperty
extends RemoteItem

Remote version of the JCR Property interface. Used by the ServerProperty and ClientProperty adapters to provide transparent RMI access to remote properties.

The methods in this interface are documented only with a reference to a corresponding Property method. The remote object will simply forward the method call to the underlying Property instance. Argument and return values, as well as possible exceptions, are copied over the network. Complex PropertyDef return values are returned as remote references to the corresponding RemotePropertyDefinition interface. RMI errors are signaled with RemoteExceptions.

Note that only the generic getValue and setValue methods are included in this interface. Clients should implement the type-specific value getters and setters wrapping using the generic methods. Note also that the Value objects must be serializable and implemented using classes available on both the client and server side. The SerialValueFactory class provides two convenience methods to satisfy these requirements.

See Also:
Property, ClientProperty, ServerProperty

Method Summary
 RemotePropertyDefinition getDefinition()
          Remote version of the Property.getDefinition() method.
 long getLength()
          Remote version of the Property.getLength() method.
 long[] getLengths()
          Remote version of the Property.getLengths() method.
 int getType()
          Remote version of the Property.getType() method.
 Value getValue()
          Remote version of the Property.getValue() method.
 Value[] getValues()
          Remote version of the Property.getValues() method.
 void setValue(Value value)
          Remote version of the Property.setValue(Value) method.
 void setValue(Value[] values)
          Remote version of the Property.setValue(Value[]) method.
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
 

Method Detail

getValue

Value getValue()
               throws RepositoryException,
                      RemoteException
Remote version of the Property.getValue() method.

Returns:
property value
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getValues

Value[] getValues()
                  throws RepositoryException,
                         RemoteException
Remote version of the Property.getValues() method.

Returns:
property values
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

setValue

void setValue(Value value)
              throws RepositoryException,
                     RemoteException
Remote version of the Property.setValue(Value) method.

Parameters:
value - property value
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

setValue

void setValue(Value[] values)
              throws RepositoryException,
                     RemoteException
Remote version of the Property.setValue(Value[]) method.

Parameters:
values - property values
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getLength

long getLength()
               throws RepositoryException,
                      RemoteException
Remote version of the Property.getLength() method.

Returns:
value length
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getLengths

long[] getLengths()
                  throws RepositoryException,
                         RemoteException
Remote version of the Property.getLengths() method.

Returns:
value lengths
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getDefinition

RemotePropertyDefinition getDefinition()
                                       throws RepositoryException,
                                              RemoteException
Remote version of the Property.getDefinition() method.

Returns:
property definition
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getType

int getType()
            throws RepositoryException,
                   RemoteException
Remote version of the Property.getType() method.

Returns:
property type
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.