Package net.sf.logsaw.core.query

Examples of net.sf.logsaw.core.query.Operator


   */
  public ARestriction<?> getRestriction() {
    IStructuredSelection sel = (IStructuredSelection) fieldComboViewer.getSelection();
    ALogEntryField<?, ?> fld = (ALogEntryField<?, ?>) sel.getFirstElement();
    sel = (IStructuredSelection) operatorComboViewer.getSelection();
    final Operator op = (Operator) sel.getFirstElement();
    final ARestriction<?>[] ret = new ARestriction<?>[1];
    // Use visitor pattern to call restriction factory
    fld.visit(new ILogEntryFieldVisitor() {

      /* (non-Javadoc)
 
View Full Code Here


        final List<ARestriction<?>> restrictions = new ArrayList<ARestriction<?>>();
        IMemento[] clauses = filterElem.getChildren(ELEM_CLAUSE);
        for (final IMemento clauseElem : clauses) {
          ALogEntryField<?, ?> fld = log.getDialect().getFieldProvider().findField(
              clauseElem.getString(ATTRIB_FIELD));
          final Operator op = Operators.getOperator(clauseElem.getInteger(ATTRIB_OPERATOR));
          final IRestrictionFactory rf = CorePlugin.getDefault().getRestrictionFactory();
          fld.visit(new ILogEntryFieldVisitor() {
            /* (non-Javadoc)
             * @see net.sf.logsaw.core.model.ILogEntryFieldVisitor#visit(net.sf.logsaw.core.model.StringLogEntryField)
             */
 
View Full Code Here

    Assert.isNotNull(log, "log"); //$NON-NLS-1$
    Assert.isNotNull(fldKey, "fldKey"); //$NON-NLS-1$
    Assert.isNotNull(opId, "opId"); //$NON-NLS-1$
    Assert.isNotNull(strVal, "strVal"); //$NON-NLS-1$
    ALogEntryField<?, ?> fld = log.getDialect().getFieldProvider().findField(fldKey);
    final Operator op = Operators.getOperator(opId);
    final IRestrictionFactory rf = CorePlugin.getDefault().getRestrictionFactory();
    final ARestriction<?>[] ret = new ARestriction<?>[1];
    fld.visit(new ILogEntryFieldVisitor() {
      /* (non-Javadoc)
       * @see net.sf.logsaw.core.model.ILogEntryFieldVisitor#visit(net.sf.logsaw.core.model.StringLogEntryField)
View Full Code Here

TOP

Related Classes of net.sf.logsaw.core.query.Operator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.