Examples of RuleSet


Examples of net.hydromatic.optiq.tools.RuleSet

  private static RuleSet[] getRules(QueryContext context) {
    StoragePluginRegistry storagePluginRegistry = context.getStorage();
    if (allRules == null) {
      synchronized (DrillSqlWorker.class) {
        if (allRules == null) {
          RuleSet drillPhysicalMem = DrillRuleSets.mergedRuleSets(
              DrillRuleSets.getPhysicalRules(context),
              storagePluginRegistry.getStoragePluginRuleSet());
          allRules = new RuleSet[] {DrillRuleSets.getDrillBasicRules(context), drillPhysicalMem};
        }
      }
View Full Code Here

Examples of net.sourceforge.fullsync.RuleSet

   * to the given src and dst if they are directories
   */
  @Override
  public void synchronizeDirectories(File src, File dst, RuleSet oldrules, Task parent) throws DataParseException, IOException {
    // update rules to current directory
    RuleSet rules = updateRules(src, dst, oldrules);

    Collection<File> srcFiles = src.getChildren();
    Collection<File> dstFiles = new ArrayList<File>(dst.getChildren());

    for (File sfile : srcFiles) {
View Full Code Here

Examples of net.sourceforge.pmd.RuleSet

                }

                InputStream rulesInput = new FileInputStream( ruleset );
                try
                {
                    RuleSet ruleSet = ruleSetFactory.createRuleSet( rulesInput );
                    sets[idx] = ruleSet;

                    ruleSet.start( ruleContext );
                }
                finally
                {
                    rulesInput.close();
                }
View Full Code Here

Examples of org.apache.commons.digester.RuleSet

     * Creates a new digester and initializes it from the specified InputSource
     * @param rulesSource load the xml rules from this InputSource
     * @return a new Digester initialized with the rules
     */
    public static Digester createDigester(InputSource rulesSource) {
        RuleSet ruleSet = new FromXmlRuleSet(rulesSource);
        Digester digester = new Digester();
        digester.addRuleSet(ruleSet);
        return digester;
    }
View Full Code Here

Examples of org.apache.commons.digester3.RuleSet

     *
     * @param digester the Digester instance reference.
     */
    public void addRules( final Digester digester )
    {
        RuleSet ruleSet = createRuleSet();
        ruleSet.addRuleInstances( digester );
    }
View Full Code Here

Examples of org.apache.harmony.x.swing.text.html.cssparser.metamodel.RuleSet

        if (Utilities.isEmptyString(decl)) {
            return new SimpleAttributeSet();
        }

        initCSSParser(new StringReader("htmlTag {" + decl + "}"));
        RuleSet rs = null;
        try {
            rs = parser.parseRuleSet();
        } catch (ParseException e) {
            e.printStackTrace();
        }
        MutableAttributeSet attrs = new SimpleAttributeSet();
        Iterator pi = rs.getProperties();
        while (pi.hasNext()) {
            Property property = (Property)pi.next();
            addCSSAttribute(attrs, CSS.getAttribute(property.getName()),
                            property.getValue());
        }
View Full Code Here

Examples of org.apache.jetspeed.rewriter.rules.Ruleset

        RewriterController rwc = new JetspeedRewriterController(contextPath + "conf/rewriter-rules-mapping.xml", Arrays
                .asList(rewriterClasses), Arrays.asList(adaptorClasses));

        FileReader reader = new FileReader(contextPath + "conf/default-rewriter-rules.xml");

        Ruleset ruleset = rwc.loadRuleset(reader);
        reader.close();
        rewriter = rwc.createRewriter(ruleset);
        return rwc;
    }
View Full Code Here

Examples of org.apache.portals.applications.webcontent.rewriter.rules.Ruleset

        }
    }
   
    private Rewriter createRewriter(RewriterController rewriterController, HttpReverseProxyPathMapper proxyPathMapper) throws Exception
    {
        Ruleset rewriterRuleset = proxyPathMapperProvider.getRewriterRuleset(proxyPathMapper);
       
        if (rewriterRuleset == null)
        {
            return rewriterController.createRewriter();
        }
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.RuleSet

    @Override
    public void setUp() throws Exception
    {
        super.setUp();

        _ruleSet = new RuleSet();
    }
View Full Code Here

Examples of org.apache.tomcat.util.digester.RuleSet

        Class<?> clazz = null;
        Constructor<?> constructor = null;
        try {
            clazz = Class.forName("org.apache.catalina.ha.ClusterRuleSet");
            constructor = clazz.getConstructor(String.class);
            RuleSet ruleSet = (RuleSet) constructor.newInstance(prefix);
            digester.addRuleSet(ruleSet);
        } catch (Exception e) {
            if (log.isDebugEnabled()) {
                log.debug(sm.getString("catalina.noCluster",
                        e.getClass().getName() + ": " +  e.getMessage()), e);
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.