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

Quick Search    Search Deep

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

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

public class SubclassFilter
extends VRObjectFilter

Filtering by class name
Filters out instances of this class.


Field Summary
(package private)  java.lang.Class cl
           
 
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(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

cl

java.lang.Class cl
Constructor Detail

SubclassFilter

public SubclassFilter(java.lang.String className)
               throws java.lang.ClassNotFoundException
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