info.magnolia.cms.util
Class NodeTypeFilter
java.lang.Object
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.
NodeTypeFilter
public NodeTypeFilter(String typeName)
NodeTypeFilter
public NodeTypeFilter(ItemType type)
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.