W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1996

Changing filter attributes?

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Tue, 22 Oct 1996 09:19:05 +0200 (MET DST)
Message-Id: <199610220719.JAA26311@www43.inria.fr>
To: Anit Chakraborty <achakra@mit.edu>
Cc: www-jigsaw@w3.org
Anit Chakraborty writes:
 > I am working with storing certain state information on any resource inside
 > of the Jigsaw URL space.  The model that I am using is as follows. I am
 > using a resource to try and configure and manipulate the filters on
 > resources.  The resource looks up the other resources, registers  (if a
 > filter of this type isn't already there)  a (uninitialized) filter to the
 > resource. But I cant seem to get to the attributes inside of the filter
 > after registering the filter because I cant get to the filter attribute
 > based on the name, and that is how I thought that it worked. 
 > 
 > Currently I look up the resource. Use the
 > w3c.jigsaw.resource.FilteredResource.getFilters(Class, ResourceFilter[])
 > to get the filters of a certain state holding filter.
 > 
 > Then I try to access the attribute using
 > w3c.jigsaw.resources.ResourceFilter.setTargetValue(String, Object)

Use the filter.setValue method instead. The above method can be used
only to set shadowed attribute values (which you don't need to care
about in your case).

Anselm.
Received on Tuesday, 22 October 1996 03:19:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT