R/methods.Filter.R

#==============================================================================#
# methods.Filter.R: initialization, accessors, methods
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# initialize:
# setValidity:
# filters:
# filters<-:
#==============================================================================#


#------------------------------------------------------------------------------#
# Filter initialization:
#------------------------------------------------------------------------------#

setMethod("initialize", "Filter", 
   function(.Object, ...) {
      if (debug.xps()) print("------initialize:Filter------")

      .Object <- callNextMethod(.Object, ...);
      .Object;
   }
)#initialize

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

setValidity("Filter",
   function(object) {
      if (debug.xps()) print("------setValidity:Filter------")
      msg <- NULL;

      if (is.null(msg)) TRUE else msg;
   }
)#setValidity


#------------------------------------------------------------------------------#
# Filter accessors:
#------------------------------------------------------------------------------#

setMethod("numberFilters", signature(object="Filter"),
   function(object) object@numfilters
)#numberFilters

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Try the xps package in your browser

Any scripts or data that you put into this service are public.

xps documentation built on Nov. 8, 2020, 6 p.m.