/** * Returns a String object representing this type's value. * @return a string representation of the value of this object. */ public String toString() { switch (getOrdinal()) { case _EQUAL_INDEX: return "EQUAL"; case _DIFFER_INDEX: return "DIFFER"; case _GREATER_INDEX: return "GREATER"; case _GREATER_OR_EQUAL_INDEX: return "GREATER_OR_EQUAL"; case _LESS_INDEX: return "LESS"; case _LESS_OR_EQUAL_INDEX: return "LESS_OR_EQUAL"; case _CONTAINS_INDEX: return "CONTAINS"; case _ICONTAINS_INDEX: return "ICONTAINS"; default: throw new RuntimeException("Unknown ordinal!"); } }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (fieldName != null ? fieldName.hashCode() : 0); hash = 83 * hash + (type != null ? type.hashCode() : 0); hash = 83 * hash + (fieldValue != null ? fieldValue.hashCode() : 0); return hash; }
if (! type.equals(other.type))
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { return fromOrdinal(decoder.decodeUOctet().getValue()); }
if (expressionOperator.equals(ExpressionOperator.CONTAINS) || expressionOperator.equals(ExpressionOperator.ICONTAINS) || expressionOperator.equals(ExpressionOperator.GREATER) || expressionOperator.equals(ExpressionOperator.GREATER_OR_EQUAL) || expressionOperator.equals(ExpressionOperator.LESS) || expressionOperator.equals(ExpressionOperator.LESS_OR_EQUAL)) { return false; if (!(expressionOperator.equals(ExpressionOperator.EQUAL)) && !(expressionOperator.equals(ExpressionOperator.DIFFER))) { return false; if (expressionOperator.equals(ExpressionOperator.CONTAINS) || expressionOperator.equals(ExpressionOperator.ICONTAINS)) { if (compositeFilter.getFieldValue().getTypeShortForm() != 15) { // Is it String? return false;
if (operator.equals(ExpressionOperator.EQUAL)) { return (leftHandSide == rightHandSide); if (operator.equals(ExpressionOperator.DIFFER)) { return (leftHandSide != rightHandSide); if (operator.equals(ExpressionOperator.EQUAL)) { return leftHandSide.equals(rightHandSide); if (operator.equals(ExpressionOperator.DIFFER)) { return !leftHandSide.equals(rightHandSide); if (operator.equals(ExpressionOperator.EQUAL)) { if (stringComparison) { return rightHandSideString.equals(leftHandSideString); if (operator.equals(ExpressionOperator.DIFFER)) { if (stringComparison) { return !(rightHandSideString.equals(leftHandSideString)); if (operator.equals(ExpressionOperator.GREATER)) { if (stringComparison) { return (Double.parseDouble(leftHandSideString) > Double.parseDouble(rightHandSideString)); if (operator.equals(ExpressionOperator.GREATER_OR_EQUAL)) { if (stringComparison) { return (Double.parseDouble(leftHandSideString) >= Double.parseDouble(rightHandSideString)); if (operator.equals(ExpressionOperator.LESS)) {