Exemplo n.º 1
0
 /**
  * Implementation has the option to check a pattern; For now invalid patterns are only logged.
  *
  * @param repat
  * @return
  */
 @Override
 protected boolean validate_pattern(RegexPattern repat) {
   GeocoordPattern p = (GeocoordPattern) repat;
   if (p.cce_family_id == XConstants.UNK_PATTERN) {
     log.error("Invalid Pattern @ " + p.toString());
   }
   return (p.cce_family_id != XConstants.UNK_PATTERN);
 }
Exemplo n.º 2
0
  /**
   * enable an instance of a pattern based on the global settings.
   *
   * @param repat
   */
  @Override
  public void enable_pattern(RegexPattern repat) {
    GeocoordPattern p = (GeocoordPattern) repat;

    Boolean b = CCE_family_state.get(p.cce_family_id);
    if (b != null) {
      p.enabled = b.booleanValue();
    }
  }