Package VASSAL.configure
Class PropertyExpression
java.lang.Object
VASSAL.configure.PropertyExpression
- All Implemented Interfaces:
PieceFilter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(PropertySource source, GamePiece piece) boolean
accept
(PropertySource source, GamePiece piece, Auditable owner, AuditTrail trail) boolean
Test if a piece matches the filter.boolean
boolean
accept
(GamePiece source, GamePiece piece, Auditable owner, AuditTrail trail) boolean
Test if a piece matches the filter and provide Expression auditing facilitiesboolean
accept
(GamePiece piece, Auditable owner, AuditTrail audit) Test if a piece matches the filter and provide Expression auditing facilitiesboolean
getFilter
(PropertySource source) getFilter
(PropertySource source, Auditable owner, String fieldKey) getFilter
(PropertySource source, Auditable owner, AuditTrail audit) int
hashCode()
boolean
isNull()
boolean
isTrue
(PropertySource ps) Evaluate the Property Expression as true/false using a supplied property sourceboolean
isTrue
(PropertySource ps, Auditable owner, AuditTrail audit) void
-
Field Details
-
expression
-
-
Constructor Details
-
PropertyExpression
public PropertyExpression() -
PropertyExpression
-
-
Method Details
-
setExpression
-
getExpression
-
isNull
public boolean isNull() -
getFilter
-
getFilter
-
getFilter
-
getFilter
-
accept
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 interfacePieceFilter
- Parameters:
piece
- piece- Returns:
- true if piece match filter
-
accept
Description copied from interface:PieceFilter
Test if a piece matches the filter and provide Expression auditing facilities- Specified by:
accept
in interfacePieceFilter
- Parameters:
piece
- piece to testowner
- owner of the filterfieldKey
- EMesage key of the field holding the filter expression- Returns:
-
accept
Description copied from interface:PieceFilter
Test if a piece matches the filter and provide Expression auditing facilities- Specified by:
accept
in interfacePieceFilter
- Parameters:
piece
- piece to testowner
- owner of the filteraudit
- Audit Trail to record evaluation of the filter- Returns:
-
accept
-
accept
-
accept
-
accept
-
hashCode
-
equals
-
isTrue
Evaluate the Property Expression as true/false using a supplied property source- Parameters:
ps
- Property Source *- Returns:
- boolean result
-
isTrue
-