Class Index | File Index

Classes


Class ActiveFilter


Extends Filter.

Defined in: FilterClasses.jsm.

Class Summary
Constructor Attributes Constructor Name and Description
 
ActiveFilter(text, domains)
Abstract base class for filters that can get hits
Field Summary
Field Attributes Field Name and Description
 
Defines whether the filter is disabled
 
Map containing domains that this filter should match on/not match on or null if the filter should match on all domains
 
Separator character used in domainSource property, must be overridden by subclasses
 
String that the domains property should be generated from
 
Number of hits on the filter since the last reset
 
Last time the filter had a hit (in milliseconds since the beginning of the epoch)
Fields borrowed from class Filter:
subscriptions, text
Method Summary
Method Attributes Method Name and Description
<private>  
Generates domains property when it is requested for the first time.
<private>  
Called first time domains property is requested, triggers _generateDomains method.
 
isActiveOnDomain(docDomain)
Checks whether this filter is active on a domain.
 
Checks whether this filter is active only on a domain and its subdomains.
 
serialize(buffer)
See Filter.serialize()
Methods borrowed from class Filter:
toString
Class Detail
ActiveFilter(text, domains)
Abstract base class for filters that can get hits
Parameters:
{String} text
see Filter()
{String} domains
(optional) Domains that the filter is restricted to separated by domainSeparator e.g. "foo.com|bar.com|~baz.com"
Field Detail
{Boolean} disabled
Defines whether the filter is disabled

{Object} domains
Map containing domains that this filter should match on/not match on or null if the filter should match on all domains

{String} domainSeparator
Separator character used in domainSource property, must be overridden by subclasses

{String} domainSource
String that the domains property should be generated from

{Number} hitCount
Number of hits on the filter since the last reset

{Number} lastHit
Last time the filter had a hit (in milliseconds since the beginning of the epoch)
Method Detail
<private> _generateDomains()
Generates domains property when it is requested for the first time.

<private> _getDomains()
Called first time domains property is requested, triggers _generateDomains method.

{Boolean} isActiveOnDomain(docDomain)
Checks whether this filter is active on a domain.
Parameters:
{String} docDomain

{Boolean} isActiveOnlyOnDomain(docDomain)
Checks whether this filter is active only on a domain and its subdomains.
Parameters:
{String} docDomain

serialize(buffer)
See Filter.serialize()
Parameters:
buffer

Documentation generated by JsDoc Toolkit 2.3.2 on Wed May 09 2012 10:50:20 GMT+0000 (UTC)