org.apache.jackrabbit.rmi.client
Class ClientItemDefinition

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientItemDefinition
All Implemented Interfaces:
ItemDefinition
Direct Known Subclasses:
ClientNodeDefinition, ClientPropertyDefinition

public class ClientItemDefinition
extends ClientObject
implements ItemDefinition

Local adapter for the JCR-RMI RemoteItemDefinition interface. This class makes a remote item definition locally available using the JCR ItemDef interface. Used mainly as the base class for the ClientPropertyDefinition and ClientNodeDefinition adapters.

See Also:
ItemDefinition, RemoteItemDefinition

Constructor Summary
ClientItemDefinition(RemoteItemDefinition remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote item definition.
 
Method Summary
 NodeType getDeclaringNodeType()
          
 String getName()
          
 int getOnParentVersion()
          
 boolean isAutoCreated()
          
 boolean isMandatory()
          
 boolean isProtected()
          
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientItemDefinition

public ClientItemDefinition(RemoteItemDefinition remote,
                            LocalAdapterFactory factory)
Creates a local adapter for the given remote item definition.

Parameters:
remote - remote item definition
factory - local adapter factory
Method Detail

getDeclaringNodeType

public NodeType getDeclaringNodeType()

Specified by:
getDeclaringNodeType in interface ItemDefinition

getName

public String getName()

Specified by:
getName in interface ItemDefinition

isAutoCreated

public boolean isAutoCreated()

Specified by:
isAutoCreated in interface ItemDefinition

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface ItemDefinition

getOnParentVersion

public int getOnParentVersion()

Specified by:
getOnParentVersion in interface ItemDefinition

isProtected

public boolean isProtected()

Specified by:
isProtected in interface ItemDefinition


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