org.apache.jackrabbit.rmi.server
Class ServerPropertyDefinition
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerItemDefinition
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
ServerPropertyDefinition
public ServerPropertyDefinition(PropertyDefinition def,
RemoteAdapterFactory factory)
throws RemoteException
- Creates a remote adapter for the given local property definition.
- Parameters:
def
- local property definitionfactory
- remote adapter factory
- Throws:
RemoteException
- on RMI errors
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-2008 The Apache Software Foundation. All Rights Reserved.