org.apache.jackrabbit.test.api
Class NodeMixinUtil

java.lang.Object
  extended byorg.apache.jackrabbit.test.api.NodeMixinUtil

public class NodeMixinUtil
extends java.lang.Object

Utility class to locate mixins in the NodeTyeManager.


Constructor Summary
NodeMixinUtil()
           
 
Method Summary
static java.lang.String getAddableMixinName(javax.jcr.Session session, javax.jcr.Node node)
           
static java.lang.String getNonExistingMixinName(javax.jcr.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeMixinUtil

public NodeMixinUtil()
Method Detail

getAddableMixinName

public static java.lang.String getAddableMixinName(javax.jcr.Session session,
                                                   javax.jcr.Node node)
                                            throws javax.jcr.RepositoryException
Returns:
the name of a mixin node type that can be added by the requested node
Throws:
javax.jcr.RepositoryException

getNonExistingMixinName

public static java.lang.String getNonExistingMixinName(javax.jcr.Session session)
                                                throws javax.jcr.RepositoryException
Returns:
a string that is not the name of a mixin type
Throws:
javax.jcr.RepositoryException


Copyright © -2005 . All Rights Reserved.