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

java.lang.Object
  extended by org.exoplatform.services.jcr.rmi.api.client.ClientObject
      extended by org.exoplatform.services.jcr.rmi.api.client.ClientNodeType
All Implemented Interfaces:
javax.jcr.nodetype.NodeType

public class ClientNodeType
extends ClientObject
implements javax.jcr.nodetype.NodeType

Local adapter for the JCR-RMI RemoteNodeType inteface. This class makes a remote node type locally available using the JCR NodeType interface.

See Also:
NodeType, rmi.api.remote.RemoteNodeType

Constructor Summary
ClientNodeType(RemoteNodeType remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote node type.
 
Method Summary
 boolean canAddChildNode(java.lang.String name)
          
 boolean canAddChildNode(java.lang.String name, java.lang.String type)
          
 boolean canRemoveItem(java.lang.String name)
          
 boolean canSetProperty(java.lang.String name, javax.jcr.Value value)
          
 boolean canSetProperty(java.lang.String name, javax.jcr.Value[] values)
          
 boolean equals(java.lang.Object obj)
           
 javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
          
 javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
          
 javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
          
 javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
          
 java.lang.String getName()
          
 java.lang.String getPrimaryItemName()
          
protected  javax.jcr.nodetype.PropertyDefinition[] getPropertyDefArray(RemotePropertyDefinition[] remotes)
          Utility method for creating an array of local property definition adapters for an array of remote property definitions.
 javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
          
 javax.jcr.nodetype.NodeType[] getSupertypes()
          
 boolean hasOrderableChildNodes()
          
 boolean isMixin()
          
 boolean isNodeType(java.lang.String type)
          
 
Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientNodeType

public ClientNodeType(RemoteNodeType remote,
                      LocalAdapterFactory factory)
Creates a local adapter for the given remote node type.

Parameters:
remote - remote node type
factory - local adapter factory
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getPropertyDefArray

protected javax.jcr.nodetype.PropertyDefinition[] getPropertyDefArray(RemotePropertyDefinition[] remotes)
Utility method for creating an array of local property definition adapters for an array of remote property definitions. The property definition adapters are created using the local adapter factory.

A null input is treated as an empty array.

Parameters:
remotes - remote property definitions
Returns:
local property definition array

getName

public java.lang.String getName()

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

isMixin

public boolean isMixin()

Specified by:
isMixin in interface javax.jcr.nodetype.NodeType

hasOrderableChildNodes

public boolean hasOrderableChildNodes()

Specified by:
hasOrderableChildNodes in interface javax.jcr.nodetype.NodeType

getSupertypes

public javax.jcr.nodetype.NodeType[] getSupertypes()

Specified by:
getSupertypes in interface javax.jcr.nodetype.NodeType

getDeclaredSupertypes

public javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()

Specified by:
getDeclaredSupertypes in interface javax.jcr.nodetype.NodeType

isNodeType

public boolean isNodeType(java.lang.String type)

Specified by:
isNodeType in interface javax.jcr.nodetype.NodeType

getPropertyDefinitions

public javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()

Specified by:
getPropertyDefinitions in interface javax.jcr.nodetype.NodeType

getDeclaredPropertyDefinitions

public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()

Specified by:
getDeclaredPropertyDefinitions in interface javax.jcr.nodetype.NodeType

getChildNodeDefinitions

public javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()

Specified by:
getChildNodeDefinitions in interface javax.jcr.nodetype.NodeType

getDeclaredChildNodeDefinitions

public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()

Specified by:
getDeclaredChildNodeDefinitions in interface javax.jcr.nodetype.NodeType

canSetProperty

public boolean canSetProperty(java.lang.String name,
                              javax.jcr.Value value)

Specified by:
canSetProperty in interface javax.jcr.nodetype.NodeType

canSetProperty

public boolean canSetProperty(java.lang.String name,
                              javax.jcr.Value[] values)

Specified by:
canSetProperty in interface javax.jcr.nodetype.NodeType

canAddChildNode

public boolean canAddChildNode(java.lang.String name)

Specified by:
canAddChildNode in interface javax.jcr.nodetype.NodeType

canAddChildNode

public boolean canAddChildNode(java.lang.String name,
                               java.lang.String type)

Specified by:
canAddChildNode in interface javax.jcr.nodetype.NodeType

canRemoveItem

public boolean canRemoveItem(java.lang.String name)

Specified by:
canRemoveItem in interface javax.jcr.nodetype.NodeType

getPrimaryItemName

public java.lang.String getPrimaryItemName()

Specified by:
getPrimaryItemName in interface javax.jcr.nodetype.NodeType


Copyright © 2012 eXo Platform SAS. All Rights Reserved.