Package VASSAL.configure
Class PropertyExpression
java.lang.Object
VASSAL.configure.PropertyExpression
- All Implemented Interfaces:
PieceFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(PropertySource source, GamePiece piece) booleanaccept(PropertySource source, GamePiece piece, Auditable owner, AuditTrail trail) booleanTest if a piece matches the filter.booleanbooleanaccept(GamePiece source, GamePiece piece, Auditable owner, AuditTrail trail) booleanTest if a piece matches the filter and provide Expression auditing facilitiesbooleanaccept(GamePiece piece, Auditable owner, AuditTrail audit) Test if a piece matches the filter and provide Expression auditing facilitiesbooleangetFilter(PropertySource source) getFilter(PropertySource source, Auditable owner, String fieldKey) getFilter(PropertySource source, Auditable owner, AuditTrail audit) inthashCode()booleanisNull()booleanisTrue(PropertySource ps) Evaluate the Property Expression as true/false using a supplied property sourcebooleanisTrue(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:PieceFilterTest 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:
acceptin interfacePieceFilter- Parameters:
piece- piece- Returns:
- true if piece match filter
-
accept
Description copied from interface:PieceFilterTest if a piece matches the filter and provide Expression auditing facilities- Specified by:
acceptin 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:PieceFilterTest if a piece matches the filter and provide Expression auditing facilities- Specified by:
acceptin 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
-