|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fosstrak.llrp.commander.util.LLRPConstraints
public class LLRPConstraints
This class states additional LLRP constraints which are not modeled in llrp-1x0-def.xml.
| Field Summary | |
|---|---|
static LLRPArrayConstraint[] |
arrayConstraints
An array of array constraints that are not modeled in llrpdef.xml |
static java.lang.String |
EMPTY_LIST_ERROR_MESSAGE
Error message that gets shown when a list that must not be empty is empty |
static java.lang.String |
MISSING_PARAMETER_ERROR_MESSAGE
Error message that gets shown when a mandatory parameter is not set |
static java.lang.String |
NULL_FIELD_ERROR_MESSAGE
Error message that gets shown when a field is null |
static LLRPPresenceConstraint[] |
presenceConstraints
An array of presence constraints that are not modeled in llrpdef.xml |
static LLRPRangeConstraint[] |
rangeConstraints
An array of range constraints that are not modeled in llrpdef.xml |
| Constructor Summary | |
|---|---|
LLRPConstraints()
|
|
| Method Summary | |
|---|---|
static LLRPArrayConstraint |
getArrayConstraint(java.lang.Object messageOrParameter,
java.lang.String fieldName,
LLRPTreeMaintainer treeMaintainer)
Returns the array constraint that is specified for the given field, or null if there is no such constraint. |
static LLRPRangeConstraint |
getRangeConstraint(java.lang.Object messageOrParameter,
java.lang.String fieldName,
LLRPTreeMaintainer treeMaintainer)
Returns the range constraint that is specified for the given field, or null if there is no such constraint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MISSING_PARAMETER_ERROR_MESSAGE
public static final java.lang.String NULL_FIELD_ERROR_MESSAGE
public static final java.lang.String EMPTY_LIST_ERROR_MESSAGE
public static LLRPRangeConstraint[] rangeConstraints
public static LLRPPresenceConstraint[] presenceConstraints
public static LLRPArrayConstraint[] arrayConstraints
| Constructor Detail |
|---|
public LLRPConstraints()
| Method Detail |
|---|
public static LLRPRangeConstraint getRangeConstraint(java.lang.Object messageOrParameter,
java.lang.String fieldName,
LLRPTreeMaintainer treeMaintainer)
null if there is no such constraint. The constraint is only returned if the given
field matches the constraints precondition.
messageOrParameter - fieldName - treeMaintainer -
public static LLRPArrayConstraint getArrayConstraint(java.lang.Object messageOrParameter,
java.lang.String fieldName,
LLRPTreeMaintainer treeMaintainer)
null if there is no such constraint.
messageOrParameter - fieldName - treeMaintainer -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||