info.magnolia.cms.util
Class NodeTypeFilter
java.lang.Object
info.magnolia.cms.util.NodeTypeFilter
- All Implemented Interfaces:
- Content.ContentFilter
public class NodeTypeFilter
- extends java.lang.Object
- implements Content.ContentFilter
A Content.ContentFilter
filtering on node types.
Method Summary |
boolean |
accept(Content content)
Test if this content should be included in a resultant collection. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NodeTypeFilter
public NodeTypeFilter(java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.