public class QualityPropertyConstraints
extends java.lang.Object
implements java.io.Serializable
Contains requirements about a quality property. These are: - Name. - Value description.That is a human friendly description of property's value. - ValueFrom, the low bound of the domain that the quality property's value must be in. - ValueTo, the high bound of the domain that the quality property's value must be in. When ValueFrom and ValueTo are specified, this means that the quality property's value must be in the domain [ValueFrom, ValueTo].
Constructor and Description |
---|
QualityPropertyConstraints()
Special use: information exchange over web.Should not be used for other purposes.
|
QualityPropertyConstraints(java.lang.String name,
double valueFrom,
double valueTo)
Creates a QualityPropertyConstraints object with name, valueFrom and valueTo filled.
|
QualityPropertyConstraints(java.lang.String name,
java.lang.String valueDescription)
Creates a QualityPropertyConstraints object with name and value description filled.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getHasValueDescription()
Returns whether the quality property has a value description or not (true/false).
|
java.lang.String |
getName()
Returns the quality property's name.
|
java.lang.String |
getValueDescription()
Returns the quality property's value description.
|
double |
getValueFrom()
Returns the low bound of the domain that the quality property's value must be in.
|
double |
getValueTo()
Returns the high bound of the domain that the quality property's value must be in.
|
void |
setHasValueDescription(boolean hasValueDescription)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setName(java.lang.String name)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setValueDescription(java.lang.String valueDescription)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setValueFrom(double valueFrom)
Special use: information exchange over web.Should not be used for other purposes.
|
void |
setValueTo(double valueTo)
Special use: information exchange over web.Should not be used for other purposes.
|
public QualityPropertyConstraints(java.lang.String name, java.lang.String valueDescription)
name
- The quality property's name.valueDescription
- The quality property's value description.public QualityPropertyConstraints(java.lang.String name, double valueFrom, double valueTo)
name
- The quality property's name.valueFrom
- The low bound of the domain that the quality property's value must be in.valueTo
- The high bound of the domain that the quality property's value must be in.public QualityPropertyConstraints()
public void setName(java.lang.String name)
name
- The quality property name.public void setValueDescription(java.lang.String valueDescription)
valueDescription
- The quality property value description.public void setHasValueDescription(boolean hasValueDescription)
hasValueDescription
- Whether the quality property has a value description or not (true/false).public void setValueFrom(double valueFrom)
valueFrom
- The low bound of the domain that the quality property's value must be in.public void setValueTo(double valueTo)
valueTo
- The high bound of the domain that the quality property's value must be in.public java.lang.String getName()
public java.lang.String getValueDescription()
public boolean getHasValueDescription()
public double getValueFrom()
public double getValueTo()