com.bbn.openmap.omGraphics.rule
Class MapRule

java.lang.Object
  extended by com.bbn.openmap.MapHandlerChild
      extended by com.bbn.openmap.OMComponent
          extended by com.bbn.openmap.omGraphics.rule.Rule<java.util.Map>
              extended by com.bbn.openmap.omGraphics.rule.MapRule
All Implemented Interfaces:
LightMapHandlerChild, PropertyConsumer, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener

public class MapRule
extends Rule<java.util.Map>

Implementation of Rule that uses a Map for attributes.

Author:
dietrick

Field Summary
 
Fields inherited from class com.bbn.openmap.omGraphics.rule.Rule
displayMaxScale, displayMinScale, drawingAttributes, infolineFields, keyField, labelFields, labelMaxScale, labelMinScale, op, RuleActionInfoline, RuleActionLabel, RuleActionMaxScale, RuleActionMinScale, RuleActionRender, RuleActionTooltip, RuleKeyProperty, RuleListProperty, RuleOperatorProperty, RuleValueProperty, tooltipFields, val
 
Fields inherited from class com.bbn.openmap.OMComponent
i18n, propertyPrefix
 
Fields inherited from class com.bbn.openmap.MapHandlerChild
beanContextChildSupport, isolated
 
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
 
Constructor Summary
MapRule()
           
 
Method Summary
 boolean evaluate(java.util.Map record)
          Asks the Op class to evaluate the provided value against the Rules value.
 java.lang.String getContent(java.util.List<java.lang.String> fieldNames, java.util.Map record)
          Returns a String of concatenated record values.
 
Methods inherited from class com.bbn.openmap.omGraphics.rule.Rule
evaluate, getDisplayMaxScale, getDisplayMinScale, getDrawingAttribtues, getFieldsAsString, getInfolineFields, getKeyName, getLabelFields, getLabelMaxScale, getLabelMinScale, getOp, getProperties, getStringFromFields, getTooltipFields, getVal, setDisplayMaxScale, setDisplayMinScale, setDrawingAttributes, setInfolineFields, setKeyName, setLabelFields, setLabelMaxScale, setLabelMinScale, setOp, setProperties, setTooltipFields, setVal
 
Methods inherited from class com.bbn.openmap.OMComponent
getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
 
Methods inherited from class com.bbn.openmap.MapHandlerChild
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRule

public MapRule()
Method Detail

evaluate

public boolean evaluate(java.util.Map record)
Asks the Op class to evaluate the provided value against the Rules value.

Specified by:
evaluate in class Rule<java.util.Map>
Parameters:
record -
Returns:
true of the operation passed

getContent

public java.lang.String getContent(java.util.List<java.lang.String> fieldNames,
                                   java.util.Map record)
Returns a String of concatenated record values.

Specified by:
getContent in class Rule<java.util.Map>
Parameters:
fieldNames - column names
record - Map to use to fetch values
Returns:
String of content


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details