org.jwall.web.audit.rules
Class ValueExtractor

java.lang.Object
  extended by org.jwall.web.audit.rules.ValueExtractor
All Implemented Interfaces:
FeatureExtractor<AuditEvent,List<String>>

public class ValueExtractor
extends Object
implements FeatureExtractor<AuditEvent,List<String>>

This class extracts the values for the given variable for an event.

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 List<String> extract(String var, AuditEvent evt)
          Extract all values for the specified feature from the given event.
static List<String> extractValues(String variable, AuditEvent evt)
           
 Set<String> getVariables(AuditEvent event)
          This method extracts all available feature names for the given event.
 void registerExtractor(String name, FeatureExtractor<AuditEvent,?> extr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerExtractor

public void registerExtractor(String name,
                              FeatureExtractor<AuditEvent,?> extr)

getVariables

public Set<String> getVariables(AuditEvent event)
Description copied from interface: FeatureExtractor
This method extracts all available feature names for the given event.

Specified by:
getVariables in interface FeatureExtractor<AuditEvent,List<String>>
Returns:
See Also:
FeatureExtractor.getVariables(org.jwall.audit.Event)

extract

public List<String> extract(String var,
                            AuditEvent evt)
Description copied from interface: FeatureExtractor
Extract all values for the specified feature from the given event.

Specified by:
extract in interface FeatureExtractor<AuditEvent,List<String>>
Returns:
See Also:
FeatureExtractor.extract(java.lang.String, org.jwall.audit.Event)

extractValues

public static List<String> extractValues(String variable,
                                         AuditEvent evt)


Copyright © 2012 jwall.org. All Rights Reserved.