org.apache.jackrabbit.rmi.server
Class ServerPropertyDefinition

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerItemDefinition
                      extended by org.apache.jackrabbit.rmi.server.ServerPropertyDefinition
All Implemented Interfaces:
Serializable, Remote, RemoteItemDefinition, RemotePropertyDefinition

public class ServerPropertyDefinition
extends ServerItemDefinition
implements RemotePropertyDefinition

Remote adapter for the JCR PropertyDefinition interface. This class makes a local property definition available as an RMI service using the RemotePropertyDefinition interface.

See Also:
PropertyDefinition, RemotePropertyDefinition, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerPropertyDefinition(PropertyDefinition def, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local property definition.
 
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 class org.apache.jackrabbit.rmi.server.ServerItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Constructor Detail

ServerPropertyDefinition

public ServerPropertyDefinition(PropertyDefinition def,
                                RemoteAdapterFactory factory)
                         throws RemoteException
Creates a remote adapter for the given local property definition.

Parameters:
def - local property definition
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getRequiredType

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

Specified by:
getRequiredType in interface RemotePropertyDefinition
Returns:
required type
Throws:
RemoteException - on RMI errors

getValueConstraints

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

Specified by:
getValueConstraints in interface RemotePropertyDefinition
Returns:
value constraints
Throws:
RemoteException - on RMI errors

getDefaultValues

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

Specified by:
getDefaultValues in interface RemotePropertyDefinition
Returns:
default values
Throws:
RemoteException - on RMI errors

isMultiple

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

Specified by:
isMultiple in interface RemotePropertyDefinition
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.