org.apache.jackrabbit.rmi.remote
Interface RemotePropertyDefinition

All Superinterfaces:
Remote, RemoteItemDefinition
All Known Implementing Classes:
ServerPropertyDefinition

public interface RemotePropertyDefinition
extends RemoteItemDefinition

Remote version of the JCR PropertyDefinition interface. Used by the ServerPropertyDefinition and ClientPropertyDefinition adapters to provide transparent RMI access to remote property definitions.

The methods in this interface are documented only with a reference to a corresponding PropertyDef method. The remote object will simply forward the method call to the underlying PropertyDef instance. Return values and possible exceptions are copied over the network. RMI errors are signaled with RemoteExceptions.

Note that the returned 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 this requirement.

See Also:
PropertyDefinition, ClientPropertyDefinition, ServerPropertyDefinition

Method Summary
 Value[] getDefaultValues()
          Remote version of the PropertyDefinition.getDefaultValues() method.
 int getRequiredType()
          Remote version of the PropertyDefinition.getRequiredType() method.
 String[] getValueConstraints()
          Remote version of the PropertyDefinition.getValueConstraints() method.
 boolean isMultiple()
          Remote version of the PropertyDefinition.isMultiple() method.
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Method Detail

getRequiredType

int getRequiredType()
                    throws RemoteException
Remote version of the PropertyDefinition.getRequiredType() method.

Returns:
required type
Throws:
RemoteException - on RMI errors

getValueConstraints

String[] getValueConstraints()
                             throws RemoteException
Remote version of the PropertyDefinition.getValueConstraints() method.

Returns:
value constraints
Throws:
RemoteException - on RMI errors

getDefaultValues

Value[] getDefaultValues()
                         throws RemoteException
Remote version of the PropertyDefinition.getDefaultValues() method.

Returns:
default values
Throws:
RemoteException - on RMI errors

isMultiple

boolean isMultiple()
                   throws RemoteException
Remote version of the PropertyDefinition.isMultiple() method.

Returns:
true if the property is multi-valued, false otherwise
Throws:
RemoteException - on RMI errors


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