|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.QualityValue
public class QualityValue
A representation of a quality value. The quality value must be between 0 and 1, with no more than three digits after the decimal place.
| Constructor Summary | |
|---|---|
QualityValue()
Create a quality value defaulting to 1 |
|
QualityValue(float q)
Create a quality value |
|
| Method Summary | |
|---|---|
float |
getQualityValue()
Get the quality value |
void |
setQualityValue(float q)
Set the quality value. |
String |
toString()
Get a String representation of this quality value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QualityValue()
throws NumberFormatException
NumberFormatException - thrown if the quality value is invalid according to the SWORD specification
public QualityValue(float q)
throws NumberFormatException
q - The quality value
NumberFormatException - thrown if the quality value is invalid according to the SWORD specification| Method Detail |
|---|
public final void setQualityValue(float q)
throws NumberFormatException
q - The quality value
NumberFormatException - thrown if the quality value is invalid according to the SWORD specificationpublic final float getQualityValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||