Gridarta Editor
net.sf.gridarta.model.match.StringAttributeGameObjectMatcher Class Reference

A AttributeGameObjectMatcher that compares attributes values using "string" type. More...

+ Inheritance diagram for net.sf.gridarta.model.match.StringAttributeGameObjectMatcher:
+ Collaboration diagram for net.sf.gridarta.model.match.StringAttributeGameObjectMatcher:

Public Member Functions

 StringAttributeGameObjectMatcher (@NotNull final String name, @NotNull final Operation operation, @NotNull final String value, final boolean useDefArch)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.match.AttributeGameObjectMatcher
boolean isMatching (@NotNull final GameObject<?, ?, ?> gameObject)
 Matches an GameObject. More...
 

Protected Member Functions

int compareValue (@NotNull final GameObject<?, ?, ?> gameObject)
 
- Protected Member Functions inherited from net.sf.gridarta.model.match.AttributeGameObjectMatcher
 AttributeGameObjectMatcher (@NotNull final Operation operation)
 Creates an. More...
 
abstract int compareValue (@NotNull GameObject<?, ?, ?> gameObject)
 Compares the attribute value of a given game object with the expected value. More...
 

Private Attributes

final String name
 The attribute name to match. More...
 
final boolean useDefArch
 Whether to query the archetype as well. More...
 
final String value
 The attribute value to match. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A AttributeGameObjectMatcher that compares attributes values using "string" type.

Author
Andreas Kirschbaum

Definition at line 30 of file StringAttributeGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ StringAttributeGameObjectMatcher()

net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.StringAttributeGameObjectMatcher ( @NotNull final String  name,
@NotNull final Operation  operation,
@NotNull final String  value,
final boolean  useDefArch 
)

Creates a new instance.

Parameters
namethe attribute name to match
operationthe
Operator
to use
valuethe attribute value to compare with
useDefArchwhether to query the archetype as well

Definition at line 64 of file StringAttributeGameObjectMatcher.java.

References net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.name, net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.useDefArch, and net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.value.

Member Function Documentation

◆ compareValue()

int net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.compareValue ( @NotNull final GameObject<?, ?, ?>  gameObject)
protected

Definition at line 72 of file StringAttributeGameObjectMatcher.java.

Member Data Documentation

◆ name

final String net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.name
private

◆ serialVersionUID

final long net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 35 of file StringAttributeGameObjectMatcher.java.

◆ useDefArch

final boolean net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.useDefArch
private

◆ value

final String net.sf.gridarta.model.match.StringAttributeGameObjectMatcher.value
private

The documentation for this class was generated from the following file: