Package com.yetanalytics.xapi.model
Class Score
- java.lang.Object
-
- com.yetanalytics.xapi.model.Score
-
- All Implemented Interfaces:
JSONObject,Serializable
public class Score extends Object implements JSONObject
Class representation of the Score component of the 9274.1.1 xAPI Specification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Score()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetMax()BigDecimalgetMin()BigDecimalgetRaw()BigDecimalgetScaled()@jakarta.validation.constraints.AssertFalse(message="Score must not be empty") booleanisEmpty()@jakarta.validation.constraints.AssertTrue(message="Min Score must be less than Max Score") booleanisMinLessThanMax()@jakarta.validation.constraints.AssertTrue(message="Min Score must be less than Raw Score") booleanisMinLessThanRaw()@jakarta.validation.constraints.AssertTrue(message="Raw Score must be less than Max Score") booleanisRawLessThanMax()voidsetMax(BigDecimal max)voidsetMin(BigDecimal min)voidsetRaw(BigDecimal raw)voidsetScaled(BigDecimal scaled)
-
-
-
Method Detail
-
getRaw
public BigDecimal getRaw()
-
setRaw
public void setRaw(BigDecimal raw)
-
getMin
public BigDecimal getMin()
-
setMin
public void setMin(BigDecimal min)
-
getMax
public BigDecimal getMax()
-
setMax
public void setMax(BigDecimal max)
-
getScaled
public BigDecimal getScaled()
-
setScaled
public void setScaled(BigDecimal scaled)
-
isMinLessThanRaw
@AssertTrue(message="Min Score must be less than Raw Score") public @jakarta.validation.constraints.AssertTrue(message="Min Score must be less than Raw Score") boolean isMinLessThanRaw()
-
isRawLessThanMax
@AssertTrue(message="Raw Score must be less than Max Score") public @jakarta.validation.constraints.AssertTrue(message="Raw Score must be less than Max Score") boolean isRawLessThanMax()
-
isMinLessThanMax
@AssertTrue(message="Min Score must be less than Max Score") public @jakarta.validation.constraints.AssertTrue(message="Min Score must be less than Max Score") boolean isMinLessThanMax()
-
isEmpty
@AssertFalse(message="Score must not be empty") public @jakarta.validation.constraints.AssertFalse(message="Score must not be empty") boolean isEmpty()
- Specified by:
isEmptyin interfaceJSONObject
-
-