Class PropertyExpression

java.lang.Object
VASSAL.configure.PropertyExpression
All Implemented Interfaces:
PieceFilter

public class PropertyExpression extends Object implements PieceFilter
  • Field Details

  • Constructor Details

    • PropertyExpression

      public PropertyExpression()
    • PropertyExpression

      public PropertyExpression(String s)
  • Method Details

    • setExpression

      public void setExpression(String s)
    • getExpression

      public String getExpression()
    • isNull

      public boolean isNull()
    • getFilter

      public PieceFilter getFilter(PropertySource source, Auditable owner, String fieldKey)
    • getFilter

      public PieceFilter getFilter(PropertySource source, Auditable owner, AuditTrail audit)
    • getFilter

      public PieceFilter getFilter(PropertySource source)
    • getFilter

      public PieceFilter getFilter()
    • accept

      public boolean accept(GamePiece piece)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter. This sig should only be used for filters that can not have Expressions as a component of the filter and thus have no Expression Auditing requirementts
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece
      Returns:
      true if piece match filter
    • accept

      public boolean accept(GamePiece piece, Auditable owner, String fieldKey)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      fieldKey - EMesage key of the field holding the filter expression
      Returns:
    • accept

      public boolean accept(GamePiece piece, Auditable owner, AuditTrail audit)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      audit - Audit Trail to record evaluation of the filter
      Returns:
    • accept

      public boolean accept(GamePiece source, GamePiece piece)
    • accept

      public boolean accept(PropertySource source, GamePiece piece)
    • accept

      public boolean accept(GamePiece source, GamePiece piece, Auditable owner, AuditTrail trail)
    • accept

      public boolean accept(PropertySource source, GamePiece piece, Auditable owner, AuditTrail trail)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isTrue

      public boolean isTrue(PropertySource ps)
      Evaluate the Property Expression as true/false using a supplied property source
      Parameters:
      ps - Property Source *
      Returns:
      boolean result
    • isTrue

      public boolean isTrue(PropertySource ps, Auditable owner, AuditTrail audit)