info.magnolia.cms.util
Class NodeTypeFilter

java.lang.Object
  extended by info.magnolia.cms.util.NodeTypeFilter
All Implemented Interfaces:
Content.ContentFilter

public class NodeTypeFilter
extends Object
implements Content.ContentFilter

A Content.ContentFilter filtering on node types.


Constructor Summary
NodeTypeFilter(ItemType type)
           
NodeTypeFilter(String typeName)
           
 
Method Summary
 boolean accept(Content content)
          Test if this content should be included in a resultant collection.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeTypeFilter

public NodeTypeFilter(String typeName)

NodeTypeFilter

public NodeTypeFilter(ItemType type)
Method Detail

accept

public boolean accept(Content content)
Description copied from interface: Content.ContentFilter
Test if this content should be included in a resultant collection.

Specified by:
accept in interface Content.ContentFilter
Returns:
if true this will be a part of collection

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.