org.vrspace.server.filter
Class ClassFilter
java.lang.Object
org.vrspace.server.filter.VRObjectFilter
org.vrspace.server.filter.ClassFilter
- All Implemented Interfaces:
- ObjectFilter
- public class ClassFilter
- extends VRObjectFilter
Filtering by class name
Filters out instances of this class.
Note that package name is ignored, and also does not care of ineritance.
- See Also:
SubclassFilter
Constructor Summary |
ClassFilter(java.lang.String className)
|
Method Summary |
boolean |
equals(java.lang.Object o)
Two ClassFilters equal if filter out the same className |
boolean |
testVRObject(VRObject o,
Client c)
Return true if this client should see the object |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassFilter
public ClassFilter(java.lang.String className)
testVRObject
public boolean testVRObject(VRObject o,
Client c)
- Description copied from class:
VRObjectFilter
- Return true if this client should see the object
- Specified by:
testVRObject
in class VRObjectFilter
- Returns:
- !(o.getClassName().equals( className ))
equals
public boolean equals(java.lang.Object o)
- Two ClassFilters equal if filter out the same className
- Specified by:
equals
in class VRObjectFilter
toString
public java.lang.String toString()
- Overrides:
toString
in class VRObjectFilter