public abstract class Attribute extends Object implements Serializable, Comparable<Attribute>
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPARE_BIGGER |
static int |
COMPARE_EQUAL |
static int |
COMPARE_SMALLER |
static double |
FULL_MATCH |
static double |
IGNORE_WEIGHT |
static double |
NO_MATCH |
static double |
NORMAL_WEIGHT |
| Modifier | Constructor and Description |
|---|---|
protected |
Attribute() |
protected |
Attribute(String key) |
| Modifier and Type | Method and Description |
|---|---|
abstract Attribute |
applyChanges(Serializable actual) |
int |
compareTo(Attribute other) |
boolean |
equals(Object obj) |
String |
getKey() |
abstract Serializable |
getValue()
Beware that JAXB does not differentiate between empty string and null.
|
double |
getWeight() |
int |
hashCode() |
boolean |
isNotVisible() |
boolean |
isVisible()
This method should return
true if the attribute is meaningful to the user, i.e. |
abstract double |
match(Attribute other) |
String |
toString() |
public static final double IGNORE_WEIGHT
public static final double NORMAL_WEIGHT
public static final double FULL_MATCH
public static final double NO_MATCH
public static final int COMPARE_BIGGER
public static final int COMPARE_EQUAL
public static final int COMPARE_SMALLER
protected Attribute()
protected Attribute(String key)
public final String getKey()
public abstract Serializable getValue()
public abstract double match(Attribute other)
public abstract Attribute applyChanges(Serializable actual)
public double getWeight()
public boolean isVisible()
true if the attribute is meaningful to the user, i.e. can be visually detected
by the user when examining the SUT. Attributes that are invisible (e.g. HTML name and id) should return
false.public final boolean isNotVisible()
public int compareTo(Attribute other)
compareTo in interface Comparable<Attribute>Copyright © 2018 ReTest GmbH. All rights reserved.