| | |
| | | public ConditionResult valuesMatch(ByteSequence attributeValue, |
| | | ByteSequence assertionValue) |
| | | { |
| | | if (assertionValue.equals(attributeValue)) |
| | | { |
| | | return ConditionResult.TRUE; |
| | | } |
| | | else |
| | | { |
| | | return ConditionResult.FALSE; |
| | | } |
| | | return ConditionResult.valueOf(assertionValue.equals(attributeValue)); |
| | | } |
| | | |
| | | |
| | |
| | | ByteSequence assertionValue) |
| | | { |
| | | int ret = attributeValue.compareTo(assertionValue); |
| | | |
| | | if (ret < 0) |
| | | { |
| | | return ConditionResult.TRUE; |
| | | } |
| | | else |
| | | { |
| | | return ConditionResult.FALSE; |
| | | } |
| | | return ConditionResult.valueOf(ret < 0); |
| | | } |
| | | |
| | | |
| | |
| | | ByteSequence assertionValue) |
| | | { |
| | | int ret = attributeValue.compareTo(assertionValue); |
| | | |
| | | if (ret <= 0) |
| | | { |
| | | return ConditionResult.TRUE; |
| | | } |
| | | else |
| | | { |
| | | return ConditionResult.FALSE; |
| | | } |
| | | return ConditionResult.valueOf(ret <= 0); |
| | | } |
| | | |
| | | |
| | |
| | | ByteSequence assertionValue) |
| | | { |
| | | int ret = attributeValue.compareTo(assertionValue); |
| | | |
| | | if (ret > 0) |
| | | { |
| | | return ConditionResult.TRUE; |
| | | } |
| | | else |
| | | { |
| | | return ConditionResult.FALSE; |
| | | } |
| | | return ConditionResult.valueOf(ret > 0); |
| | | } |
| | | |
| | | |
| | |
| | | ByteSequence assertionValue) |
| | | { |
| | | int ret = attributeValue.compareTo(assertionValue); |
| | | |
| | | if (ret >= 0) |
| | | { |
| | | return ConditionResult.TRUE; |
| | | } |
| | | else |
| | | { |
| | | return ConditionResult.FALSE; |
| | | } |
| | | return ConditionResult.valueOf(ret >= 0); |
| | | } |
| | | |
| | | |