org.apache.jackrabbit.rmi.remote
Interface RemoteNodeType

All Superinterfaces:
Remote
All Known Implementing Classes:
ServerNodeType

public interface RemoteNodeType
extends Remote

Remote version of the JCR NodeType interface. Used by the ServerNodeType and ClientNodeType adapters to provide transparent RMI access to remote node types.

The methods in this interface are documented only with a reference to a corresponding NodeType method. The remote object will simply forward the method call to the underlying NodeType instance. Return values and possible exceptions are copied over the network. Complex return values (like NodeTypes and PropertyDefs) are returned as remote references to the corresponding remote interfaces. RMI errors are signaled with RemoteExceptions.

See Also:
NodeType, ClientNodeType, ServerNodeType

Method Summary
 boolean canAddChildNode(String name)
          Remote version of the NodeType.canAddChildNode(String) method.
 boolean canAddChildNode(String name, String type)
          Remote version of the NodeType.canAddChildNode(String,String) method.
 boolean canRemoveItem(String name)
          Remote version of the NodeType.canRemoveItem(String) method.
 boolean canSetProperty(String name, Value value)
          Remote version of the NodeType.canSetProperty(String,Value) method.
 boolean canSetProperty(String name, Value[] values)
          Remote version of the NodeType.canSetProperty(String,Value[]) method.
 RemoteNodeDefinition[] getChildNodeDefs()
          Remote version of the NodeType.getChildNodeDefs() method.
 RemoteNodeDefinition[] getDeclaredChildNodeDefs()
          Remote version of the NodeType.getDeclaredChildNodeDefs() method.
 RemotePropertyDefinition[] getDeclaredPropertyDefs()
          Remote version of the NodeType.getDeclaredPropertyDefs() method.
 RemoteNodeType[] getDeclaredSupertypes()
          Remote version of the NodeType.getDeclaredSupertypes() method.
 String getName()
          Remote version of the NodeType.getName() method.
 String getPrimaryItemName()
          Remote version of the NodeType.getPrimaryItemName() method.
 RemotePropertyDefinition[] getPropertyDefs()
          Remote version of the NodeType.getPropertyDefs() method.
 RemoteNodeType[] getSupertypes()
          Remote version of the NodeType.getSupertypes() method.
 boolean hasOrderableChildNodes()
          Remote version of the NodeType.hasOrderableChildNodes() method.
 boolean isAbstract()
          Remote version of the NodeType.isAbstract() method.
 boolean isMixin()
          Remote version of the NodeType.isMixin() method.
 boolean isNodeType(String type)
          Remote version of the NodeType.isNodeType(String) method.
 

Method Detail

getName

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

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

isMixin

boolean isMixin()
                throws RemoteException
Remote version of the NodeType.isMixin() method.

Returns:
true if this is a mixin type, false otherwise
Throws:
RemoteException - on RMI errors

isAbstract

boolean isAbstract()
                   throws RemoteException
Remote version of the NodeType.isAbstract() method.

Returns:
true if this is an abstract type, false otherwise
Throws:
RemoteException - on RMI errors

hasOrderableChildNodes

boolean hasOrderableChildNodes()
                               throws RemoteException
Remote version of the NodeType.hasOrderableChildNodes() method.

Returns:
true if nodes of this type has orderable child nodes, false otherwise
Throws:
RemoteException - on RMI errors

getSupertypes

RemoteNodeType[] getSupertypes()
                               throws RemoteException
Remote version of the NodeType.getSupertypes() method.

Returns:
supertypes
Throws:
RemoteException - on RMI errors

getDeclaredSupertypes

RemoteNodeType[] getDeclaredSupertypes()
                                       throws RemoteException
Remote version of the NodeType.getDeclaredSupertypes() method.

Returns:
declared supertypes
Throws:
RemoteException - on RMI errors

isNodeType

boolean isNodeType(String type)
                   throws RemoteException
Remote version of the NodeType.isNodeType(String) method.

Parameters:
type - node type name
Returns:
true if this node type is or extends the given node type, false otherwise
Throws:
RemoteException - on RMI errors

getPropertyDefs

RemotePropertyDefinition[] getPropertyDefs()
                                           throws RemoteException
Remote version of the NodeType.getPropertyDefs() method.

Returns:
property definitions
Throws:
RemoteException - on RMI errors

getDeclaredPropertyDefs

RemotePropertyDefinition[] getDeclaredPropertyDefs()
                                                   throws RemoteException
Remote version of the NodeType.getDeclaredPropertyDefs() method.

Returns:
declared property definitions
Throws:
RemoteException - on RMI errors

getChildNodeDefs

RemoteNodeDefinition[] getChildNodeDefs()
                                        throws RemoteException
Remote version of the NodeType.getChildNodeDefs() method.

Returns:
child node definitions
Throws:
RemoteException - on RMI errors

getDeclaredChildNodeDefs

RemoteNodeDefinition[] getDeclaredChildNodeDefs()
                                                throws RemoteException
Remote version of the NodeType.getDeclaredChildNodeDefs() method.

Returns:
declared child node definitions
Throws:
RemoteException - on RMI errors

canSetProperty

boolean canSetProperty(String name,
                       Value value)
                       throws RemoteException
Remote version of the NodeType.canSetProperty(String,Value) method.

Parameters:
name - property name
value - property value
Returns:
true if the property can be set, false otherwise
Throws:
RemoteException - on RMI errors

canSetProperty

boolean canSetProperty(String name,
                       Value[] values)
                       throws RemoteException
Remote version of the NodeType.canSetProperty(String,Value[]) method.

Parameters:
name - property name
values - property values
Returns:
true if the property can be set, false otherwise
Throws:
RemoteException - on RMI errors

canAddChildNode

boolean canAddChildNode(String name)
                        throws RemoteException
Remote version of the NodeType.canAddChildNode(String) method.

Parameters:
name - child node name
Returns:
true if the child node can be added, false otherwise
Throws:
RemoteException - on RMI errors

canAddChildNode

boolean canAddChildNode(String name,
                        String type)
                        throws RemoteException
Remote version of the NodeType.canAddChildNode(String,String) method.

Parameters:
name - child node name
type - child node type
Returns:
true if the child node can be added, false otherwise
Throws:
RemoteException - on RMI errors

canRemoveItem

boolean canRemoveItem(String name)
                      throws RemoteException
Remote version of the NodeType.canRemoveItem(String) method.

Parameters:
name - item name
Returns:
true if the item can be removed, false otherwise
Throws:
RemoteException - on RMI errors

getPrimaryItemName

String getPrimaryItemName()
                          throws RemoteException
Remote version of the NodeType.getPrimaryItemName() method.

Returns:
primary item name
Throws:
RemoteException - on RMI errors


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