Package org.jupnp.model.meta
Klasse StateVariableAllowedValueRange
java.lang.Object
org.jupnp.model.meta.StateVariableAllowedValueRange
- Alle implementierten Schnittstellen:
Validatable
Integrity rule for a state variable, restricting its values to a range with steps.
TODO: The question here is: Are they crazy enough to use this for !integer (e.g. floating point) numbers?
- Autor:
- Christian Bauer, Jochen Hiller - use SpecificationViolationReporter
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStateVariableAllowedValueRange(long minimum, long maximum) StateVariableAllowedValueRange(long minimum, long maximum, long step) -
Methodenübersicht
-
Konstruktordetails
-
StateVariableAllowedValueRange
public StateVariableAllowedValueRange(long minimum, long maximum) -
StateVariableAllowedValueRange
public StateVariableAllowedValueRange(long minimum, long maximum, long step)
-
-
Methodendetails
-
getMinimum
public long getMinimum() -
getMaximum
public long getMaximum() -
getStep
public long getStep() -
isInRange
public boolean isInRange(long value) -
validate
- Angegeben von:
validatein SchnittstelleValidatable- Gibt zurück:
- An empty
Listif all rules validated properly, otherwise, the detected errors.
-
toString
-