org.exoplatform.services.jcr.rmi.api.client
Class ClientItemDefinition

java.lang.Object
  extended by org.exoplatform.services.jcr.rmi.api.client.ClientObject
      extended by org.exoplatform.services.jcr.rmi.api.client.ClientItemDefinition
All Implemented Interfaces:
javax.jcr.nodetype.ItemDefinition
Direct Known Subclasses:
ClientNodeDefinition, ClientPropertyDefinition

public class ClientItemDefinition
extends ClientObject
implements javax.jcr.nodetype.ItemDefinition

Local adapter for the JCR-RMI RemoteItemDefinition inteface. 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, rmi.api.remote.RemoteItemDefinition

Constructor Summary
ClientItemDefinition(RemoteItemDefinition remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote item definition.
 
Method Summary
 javax.jcr.nodetype.NodeType getDeclaringNodeType()
          
 java.lang.String getName()
          
 int getOnParentVersion()
          
 boolean isAutoCreated()
          
 boolean isMandatory()
          
 boolean isProtected()
          
 
Methods inherited from class org.exoplatform.services.jcr.rmi.api.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 javax.jcr.nodetype.NodeType getDeclaringNodeType()

Specified by:
getDeclaringNodeType in interface javax.jcr.nodetype.ItemDefinition

getName

public java.lang.String getName()

Specified by:
getName in interface javax.jcr.nodetype.ItemDefinition

isAutoCreated

public boolean isAutoCreated()

Specified by:
isAutoCreated in interface javax.jcr.nodetype.ItemDefinition

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface javax.jcr.nodetype.ItemDefinition

getOnParentVersion

public int getOnParentVersion()

Specified by:
getOnParentVersion in interface javax.jcr.nodetype.ItemDefinition

isProtected

public boolean isProtected()

Specified by:
isProtected in interface javax.jcr.nodetype.ItemDefinition


Copyright © 2011 eXo Platform SAS. All Rights Reserved.