Examples of TypeValue


Examples of net.sourceforge.fullsync.rules.filefilter.values.TypeValue

    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));
  }

  public void testIsDirectory() {
    FileTypeFileFilterRule filterRule = new FileTypeFileFilterRule(new TypeValue(TypeValue.DIRECTORY_TYPE),
        FileTypeFileFilterRule.OP_IS);
    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));

    filterRule = new FileTypeFileFilterRule(new TypeValue(TypeValue.DIRECTORY_TYPE), FileTypeFileFilterRule.OP_IS);
    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));
  }
View Full Code Here

Examples of net.sourceforge.fullsync.rules.filefilter.values.TypeValue

    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));
  }

  public void testIsntDirectory() {
    FileTypeFileFilterRule filterRule = new FileTypeFileFilterRule(new TypeValue(TypeValue.DIRECTORY_TYPE),
        FileTypeFileFilterRule.OP_ISNT);
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));

    filterRule = new FileTypeFileFilterRule(new TypeValue(TypeValue.DIRECTORY_TYPE), FileTypeFileFilterRule.OP_ISNT);
    assertTrue(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, false, 1024, System.currentTimeMillis())));
    assertFalse(filterRule.match(new TestNode("foobar.txt", "/root/foobar.txt", true, true, 1024, System.currentTimeMillis())));
  }
View Full Code Here

Examples of net.sourceforge.fullsync.rules.filefilter.values.TypeValue

    }

    if (ruleType.equals(FileTypeFileFilterRule.typeName)) {
      int op = Integer.parseInt(fileFilterRuleElement.getAttribute("op"));
      String type = fileFilterRuleElement.getAttribute("type");
      rule = new FileTypeFileFilterRule(new TypeValue(type), op);
    }

    if (ruleType.equals(FileSizeFileFilterRule.typeName)) {
      int op = Integer.parseInt(fileFilterRuleElement.getAttribute("op"));
      String size = fileFilterRuleElement.getAttribute("size");
View Full Code Here

Examples of net.sourceforge.fullsync.rules.filefilter.values.TypeValue

      TextValue textValue = (TextValue) value;
      rule = new FilePathFileFilterRule(textValue, op);
    }

    if (ruleType.equals(FileTypeFileFilterRule.typeName)) {
      TypeValue fileTypeValue = (TypeValue) value;
      rule = new FileTypeFileFilterRule(fileTypeValue, op);
    }

    if (ruleType.equals(FileSizeFileFilterRule.typeName)) {
      SizeValue size = (SizeValue) value;
View Full Code Here

Examples of org.jrdf.query.answer.TypeValue

        this.typeValueFactory = newTypeValueFactory;
    }

    public void getOneBinding(Map<String, TypeValue> variableToValue) throws XMLStreamException {
        String variableName = parser.getAttributeValue(null, NAME);
        TypeValue binding = getTypeValue();
        variableToValue.put(variableName, binding);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.