Examples of addRule()


Examples of com.sun.org.apache.commons.digester.Digester.addRule()

                            "org.apache.catalina.LifecycleListener");

        digester.addObjectCreate("Server/Service/Connector",
                                 "org.apache.coyote.tomcat5.CoyoteConnector",
                                 "className");
        digester.addRule("Server/Service/Connector",
                         new SetAllPropertiesRule());
        digester.addSetNext("Server/Service/Connector",
                            "addConnector",
                            "org.apache.catalina.Connector");
View Full Code Here

Examples of com.volantis.mcs.build.themes.definitions.Rules.addRule()

                Rule rule = definitionsFactory.createRule();
                pushObject(rule);
                processThemePropertyChildren(element);
                popObject();

                ruleSet.addRule(rule.getFrom(), rule.getTo());
            }

        } else if (name.equals("from")) {
            Rule rule = (Rule) findObject(Rule.class);
            if (rule == null) {
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.dynamic.NamespaceRuleSet.addRule()

                // will populate
                NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
                        Namespace.WEB_SERVICE_DRIVER.getURI(), true);

                // add the rule for the request adapter process
                ruleSet.addRule("request",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new RequestAdapterProcess();
View Full Code Here

Examples of eas.math.fundamentalAlgorithms.graphBased.algorithms.type0grammars.Grammar.addRule()

        for (String fromState : reachableStates) {
            for (Transition targetTransition : this.getTransitionsFrom(fromState)) {
                String toState = targetTransition.getDestination();
                String symbol = targetTransition.getLabel();
               
                g.addRule(new Rule(
                        new Word(new Symbol[] {new Nonterminal(new StringBuffer(fromState))}),
                        new Word(new Symbol[] {
                                new Terminal(new StringBuffer(symbol)),
                                new Nonterminal(new StringBuffer(toState))})));
            }
View Full Code Here

Examples of edu.cmu.cs.fusion.constraint.InferenceEnvironment.addRule()

    RelationshipPredicate trigger = new RelationshipPredicate(relations[0], new SpecVar[] {new SpecVar("a"), new SpecVar("b")});
    List<RelEffect> eff = new LinkedList<RelEffect>();
    eff.add(RelEffect.createAddEffect(relations[1], new SpecVar[] {new SpecVar("a"), new SpecVar("b")}));
   
    InferredRel inf = new InferredRel(trigger, eff);
    infEnv.addRule(inf);
   
    RelationshipPredicate find = new RelationshipPredicate(relations[0], new SpecVar[] {new SpecVar("a"), new SpecVar("a")});
    Substitution sub = new Substitution();
    sub = sub.addSub(new SpecVar("a"), labels[0]);
       
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.mapping.Mapping.addRule()

        br2.setVersion("1");
        Mapping mapping1 = new Mapping();
        Map map1 = new Map();
        map1.setTo("d");
        map1.setFrom("b");
        mapping1.addRule(map1);
        Map map11 = new Map();
        map11.setTo("c");
        map11.setFrom("f");
        mapping1.addRule(map11);
        br2.setMapping(mapping1);
View Full Code Here

Examples of io.fabric8.service.jclouds.firewall.FirewallManager.addRule()

                }
                //We do add the target node public address to the firewall rules, as a way to make things easier in cases
                //where firewall configuration is shared among nodes of the same groups, e.g. EC2.
                if (!Strings.isNullOrEmpty(publicAddress)) {
                    Rule zookeeperFromTargetRule = Rule.create().source(publicAddress + "/32").destination(nodeMetadata).port(2181);
                    firewallManager.addRule(zookeeperFromTargetRule);
                }
            } else {
                listener.onStateChange(String.format("Skipping firewall configuration. Not supported for provider %s", options.getProviderName()));
            }
        } catch (FirewallNotSupportedOnProviderException e) {
View Full Code Here

Examples of javax.faces.view.facelets.MetaRuleset.addRule()

    }

    public MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset metaRuleset = wrappedHandlerDelegate.createMetaRuleset(type);
        for (MetaRule metaRule : metaRules) {
            metaRuleset.addRule(metaRule);
        }
        return metaRuleset;
    }

    public void applyAttachedObject(FacesContext context, UIComponent parent) {
View Full Code Here

Examples of javax.swing.text.html.StyleSheet.addRule()

    StyleSheet styles = htmlkit.getStyleSheet();
    StyleSheet ss = new StyleSheet();

    ss.addStyleSheet(styles);

    ss.addRule("body {font-family:arial;font-size:12pt}");
    ss.addRule("p {font-family:arial;margin:2}");

    HTMLDocument doc = new HTMLDocLinkDetector(ss);

    setEditorKit(htmlkit);
View Full Code Here

Examples of lexer.Lexer.addRule()

 
  public static void main(String[] args) {
    Lexer lexer = new Lexer();
    final Type<Integer> integer = new Type<>("Integer");
    final Type<Double> decimal = new Type<>("Decimal");
    lexer.addRule("Integer", new Rule<Integer>("[0-9]+", integer, new Action<Integer>() {
      @Override
      public Token action(Matcher matcher, Lexer lexer, Type<Integer> type) {
        return new Token(new Integer(matcher.group()), type);
      }
    }));
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.