@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "beans"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, DATASOURCES_ROOT_TAG); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "weblogic-ejb-jar"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "jboss-web"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "jboss-web"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "process-definition"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "weblogic-web-app"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "ejb-jar"); }
@Override public ConditionBuilder when() { return Query.fromType(NamespaceMetaModel.class).withProperty(NamespaceMetaModel.NAMESPACE_URI, "http://java.sun.com/xml/ns/persistence"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(FileModel.FILE_NAME, "ibm-ejb-jar-bnd.xmi") .withProperty(XmlFileModel.ROOT_TAG_NAME, "EJBJarBinding"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "jboss").withProperty(FileModel.FILE_NAME, "jboss.xml"); }
@Override public ConditionBuilder when() { return Query.fromType(FileModel.class).withProperty(FileModel.IS_DIRECTORY, false) .withProperty(FileModel.FILE_PATH, QueryPropertyComparisonType.REGEX, ".*\\.properties$"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(FileModel.FILE_NAME, "ibm-webservices-ext.xmi") .withProperty(XmlFileModel.ROOT_TAG_NAME, "WsExtension"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "web-app").withProperty(XmlFileModel.FILE_NAME, QueryPropertyComparisonType.NOT_EQUALS, "geronimo-web.xml"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "ejb-jar") .withProperty(FileModel.FILE_NAME, "jboss-ejb3.xml"); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(FileModel.FILE_NAME, "ibm-webservices-bnd.xmi") .withProperty(XmlFileModel.ROOT_TAG_NAME, "WSBinding"); }
@Override public boolean evaluate(GraphRewrite event, EvaluationContext context) { QueryBuilderFind q = Query.fromType(OverviewReportLineMessageModel.class); q.withProperty(OverviewReportLineMessageModel.PROPERTY_MESSAGE, QueryPropertyComparisonType.REGEX, messagePattern); return q.evaluate(event, context); }
@Override public ConditionBuilder when() { return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "web-app").withProperty(XmlFileModel.FILE_NAME, QueryPropertyComparisonType.NOT_EQUALS, "geronimo-web.xml"); }
@Override public boolean evaluate(GraphRewrite event, EvaluationContext context) { QueryBuilderFind q = Query.fromType(FileModel.class); q.withProperty(FileModel.FILE_NAME,filename); return q.evaluate(event, context); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(WindupConfigurationModel.class).withProperty(WindupConfigurationModel.CSV_MODE, true)) .perform( Iteration.over(Iteration.DEFAULT_VARIABLE_LIST_STRING).perform( new ExportCSVReportOperation()).endIteration()); } // @formatter:on