Package net.sf.logsaw.core.query

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


    XMLMemento rootElem = XMLMemento.createWriteRoot(ELEM_ROOT);
    for (ARestriction<?> rest : restrictions) {
      final IMemento clauseElem = rootElem.createChild(ELEM_CLAUSE);
      clauseElem.putString(ATTRIB_FIELD, rest.getField().getKey());
      clauseElem.putInteger(ATTRIB_OPERATOR, rest.getOperator().getId());
      rest.visit(new IRestrictionVisitor() {
        /* (non-Javadoc)
         * @see net.sf.logsaw.core.query.IRestrictionVisitor#visit(net.sf.logsaw.core.query.LevelRestriction)
         */
        @Override
        public void visit(LevelRestriction restriction) {
View Full Code Here


      filterElem.putString(ATTRIB_NAME, flt.getName());
      for (ARestriction<?> rest : flt.getRestrictions()) {
        final IMemento clauseElem = filterElem.createChild(ELEM_CLAUSE);
        clauseElem.putString(ATTRIB_FIELD, rest.getField().getKey());
        clauseElem.putInteger(ATTRIB_OPERATOR, rest.getOperator().getId());
        rest.visit(new IRestrictionVisitor() {
          /* (non-Javadoc)
           * @see net.sf.logsaw.core.query.IRestrictionVisitor#visit(net.sf.logsaw.core.query.LevelRestriction)
           */
          @Override
          public void visit(LevelRestriction restriction) {
View Full Code Here

      return new MatchAllDocsQuery();
    }
    final BooleanQuery query = new BooleanQuery();
   
    // Setup visitor
    IRestrictionVisitor visitor = new IRestrictionVisitor() {

      /* (non-Javadoc)
       * @see net.sf.logsaw.core.query.IRestrictionVisitor#visit(net.sf.logsaw.core.query.DateRestriction)
       */
      @Override
 
View Full Code Here

TOP

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

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.