/** * Creates an instance of this type using the default constructor. It is a generic factory method. * @return A new instance of this type with default field values. */ public org.ccsds.moims.mo.mal.structures.Element createElement() { return new org.ccsds.moims.mo.com.archive.structures.CompositeFilter(); }
obj = HelperCOM.getNestedObject(obj, compositeFilter.getFieldName()); } catch (NoSuchFieldException ex) { Boolean evaluation = HelperCOM.evaluateExpression(leftHandSide, compositeFilter.getType(), compositeFilter.getFieldValue());
public static boolean isCompositeFilterValid(CompositeFilter compositeFilter, Object obj) { if (compositeFilter.getFieldName().contains("\\.")) { // Looking into a nested field? if (!(obj instanceof Composite)) { return false; // If it is not a composite, we can not check fields inside... } else { try { // Does the Field asked for, exists? HelperCOM.getNestedObject(obj, compositeFilter.getFieldName()); } catch (NoSuchFieldException ex) { return false; ExpressionOperator expressionOperator = compositeFilter.getType(); if (compositeFilter.getFieldValue() == null) { if (expressionOperator.equals(ExpressionOperator.CONTAINS) || expressionOperator.equals(ExpressionOperator.ICONTAINS) Attribute fieldValue = compositeFilter.getFieldValue(); if (compositeFilter.getFieldValue().getTypeShortForm() != 15) { // Is it String? return false;
/** * Creates an instance of the source type using the default constructor. It is a generic factory method. * @return A new instance of the source type with default field values. */ public org.ccsds.moims.mo.mal.structures.Element createElement() { return new org.ccsds.moims.mo.com.archive.structures.CompositeFilter(); }
/** * 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 { org.ccsds.moims.mo.mal.MALListDecoder listDecoder = decoder.createListDecoder(this); int decodedSize = listDecoder.size(); if (decodedSize > 0) { ensureCapacity(decodedSize); } while (listDecoder.hasNext()) { add((org.ccsds.moims.mo.com.archive.structures.CompositeFilter) listDecoder.decodeNullableElement(new org.ccsds.moims.mo.com.archive.structures.CompositeFilter())); } return this; }