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
 String[] getAvailableQueryOperators()
          Remote version of the PropertyDefinition.getAvailableQueryOperators() method.
 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 isFullTextSearchable()
          Remote version of the PropertyDefinition.isFullTextSearchable() method.
 boolean isMultiple()
          Remote version of the PropertyDefinition.isMultiple() method.
 boolean isQueryOrderable()
          Remote version of the PropertyDefinition.isQueryOrderable() 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

getAvailableQueryOperators

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

Returns:
a String[]
Throws:
RemoteException - on RMI errors

isFullTextSearchable

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

Returns:
a boolean
Throws:
RemoteException - on RMI errors

isQueryOrderable

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

Returns:
a boolean
Throws:
RemoteException - on RMI errors


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.