org.vrspace.server.filter
Class SubclassFilter
java.lang.Object
org.vrspace.server.filter.VRObjectFilter
org.vrspace.server.filter.SubclassFilter
- All Implemented Interfaces:
- ObjectFilter
- public class SubclassFilter
- extends VRObjectFilter
Filtering by class name
Filters out instances of this class.
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 |
SubclassFilter
public SubclassFilter(java.lang.String className)
throws java.lang.ClassNotFoundException
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:
- !(cl.isInstance(o))
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