org.vrspace.server.filter
Class SubclassFilter

java.lang.Object
  extended byorg.vrspace.server.filter.VRObjectFilter
      extended byorg.vrspace.server.filter.SubclassFilter
All Implemented Interfaces:
ObjectFilter

public class SubclassFilter
extends VRObjectFilter

Filtering by class name
Filters out instances of this class.


Constructor Summary
SubclassFilter(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 org.vrspace.server.filter.VRObjectFilter
process, test
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubclassFilter

public SubclassFilter(java.lang.String className)
               throws java.lang.ClassNotFoundException
Method Detail

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