Class SumProperties

java.lang.Object
VASSAL.build.module.properties.SumProperties
All Implemented Interfaces:
PropertySource

public class SumProperties extends Object implements PropertySource
For property names of the form sum(name), returns the value of the named property summed over a list of pieces.
Author:
rkinney
  • Field Details

  • Constructor Details

  • Method Details

    • getProperty

      public Object getProperty(Object key)
      Description copied from interface: PropertySource
      When using this interface a piece's own properties are preferred to those of "Global Properties", and those in turn are searched Zone-first then Map, then Module.
      Specified by:
      getProperty in interface PropertySource
      Parameters:
      key - String key of property to be returned
      Returns:
      Object containing value of the specified property
    • getLocalizedProperty

      public Object getLocalizedProperty(Object key)
      Description copied from interface: PropertySource
      Returns a localized translation of the specified property value, if available. Otherwise returns the non-localized version.
      Specified by:
      getLocalizedProperty in interface PropertySource
      Parameters:
      key - String key of property to be returned
      Returns:
      Object containing localized text of the specified property, if available, otherwise non-localized value