org.apache.jackrabbit.rmi.remote
Interface RemoteItemDefinition

All Superinterfaces:
Remote
All Known Subinterfaces:
RemoteNodeDefinition, RemotePropertyDefinition
All Known Implementing Classes:
ServerItemDefinition, ServerNodeDefinition, ServerPropertyDefinition

public interface RemoteItemDefinition
extends Remote

Remote version of the JCR ItemDef interface. Used by the ServerItemDefinition and ClientItemDefinition adapter base classes to provide transparent RMI access to remote item definitions.

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

See Also:
ItemDefinition, ClientItemDefinition, ServerItemDefinition

Method Summary
 RemoteNodeType getDeclaringNodeType()
          Remote version of the ItemDef.getDeclaringNodeType() method.
 String getName()
          Remote version of the ItemDef.getName() method.
 int getOnParentVersion()
          Remote version of the ItemDef.getOnParentVersion() method.
 boolean isAutoCreated()
          Remote version of the ItemDef.isAutoCreate() method.
 boolean isMandatory()
          Remote version of the ItemDef.isMandatory() method.
 boolean isProtected()
          Remote version of the ItemDef.isProtected() method.
 

Method Detail

getDeclaringNodeType

RemoteNodeType getDeclaringNodeType()
                                    throws RemoteException
Remote version of the ItemDef.getDeclaringNodeType() method.

Returns:
declaring node type
Throws:
RemoteException - on RMI errors

getName

String getName()
               throws RemoteException
Remote version of the ItemDef.getName() method.

Returns:
item name
Throws:
RemoteException - on RMI errors

isAutoCreated

boolean isAutoCreated()
                      throws RemoteException
Remote version of the ItemDef.isAutoCreate() method.

Returns:
true if the item is automatically created, false otherwise
Throws:
RemoteException - on RMI errors

isMandatory

boolean isMandatory()
                    throws RemoteException
Remote version of the ItemDef.isMandatory() method.

Returns:
true if the item is mandatory, false otherwise
Throws:
RemoteException - on RMI errors

getOnParentVersion

int getOnParentVersion()
                       throws RemoteException
Remote version of the ItemDef.getOnParentVersion() method.

Returns:
parent version behaviour
Throws:
RemoteException - on RMI errors

isProtected

boolean isProtected()
                    throws RemoteException
Remote version of the ItemDef.isProtected() method.

Returns:
true if the item is protected, false otherwise
Throws:
RemoteException - on RMI errors


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