org.apache.chemistry.opencmis.jcr
Class JcrNodeFactory

java.lang.Object
  extended by org.apache.chemistry.opencmis.jcr.JcrNodeFactory

public class JcrNodeFactory
extends Object

Factory for creating instances of sub-classes of JcrNode from JCR Nodes.


Constructor Summary
JcrNodeFactory()
           
 
Method Summary
 JcrNode create(javax.jcr.Node node)
          Create a new JcrNode from a JCR Node.
protected  PathManager getPathManager()
           
protected  TypeManager getTypeManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrNodeFactory

public JcrNodeFactory()
Method Detail

create

public JcrNode create(javax.jcr.Node node)
Create a new JcrNode from a JCR Node. This implementation creates a JcrUnversionedDocument if node is of type nt:file but not of type mix:simpleVersionable, a JcrVersion if node is of type nt:file and of type mix:simpleVersionable and a JcrFolder otherwise.

Parameters:
node -
Returns:

getTypeManager

protected final TypeManager getTypeManager()

getPathManager

protected final PathManager getPathManager()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.