Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.vrspace.server.filter
Class ClassFilter  view ClassFilter download ClassFilter.java

java.lang.Object
  extended byorg.vrspace.server.filter.VRObjectFilter
      extended byorg.vrspace.server.filter.ClassFilter
All Implemented Interfaces:
org.vrspace.attributes.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.


Field Summary
(package private)  java.lang.String className
           
 
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(org.vrspace.server.VRObject o, org.vrspace.server.Client c)
          Return true if this client should see the object
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
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
 

Field Detail

className

java.lang.String className
Constructor Detail

ClassFilter

public ClassFilter(java.lang.String className)
Method Detail

testVRObject

public boolean testVRObject(org.vrspace.server.VRObject o,
                            org.vrspace.server.Client c)
Description copied from class: VRObjectFilter
Return true if this client should see the object

Specified by:
testVRObject in class VRObjectFilter

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()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class VRObjectFilter