info.magnolia.jcr.decoration
Class ContentDecoratorUtil
java.lang.Object
info.magnolia.jcr.decoration.ContentDecoratorUtil
public class ContentDecoratorUtil
- extends Object
Utility class for ContentDecorator
.
- Version:
- $Id$
Method Summary |
static boolean |
isDecoratedWith(javax.jcr.Node node,
Class<? extends ContentDecorator> clazz)
Determines if the passed node is wrapped by a ContentDecorator that is assignment compatible with the passed
class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentDecoratorUtil
public ContentDecoratorUtil()
isDecoratedWith
public static boolean isDecoratedWith(javax.jcr.Node node,
Class<? extends ContentDecorator> clazz)
- Determines if the passed node is wrapped by a ContentDecorator that is assignment compatible with the passed
class. That is, it returns true if there is a wrapper on the node that is an instance of the class or one of its
subclasses.
- Parameters:
node
- node to is potentially wrappedclazz
- type of the decorator
- Returns:
- whether the node is wrapped by the class
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.