Examples of RuleSet


Examples of at.bestsolution.efxclipse.tooling.css.cssDsl.ruleset

    if (!known) {
      warning("Unknown property: \""+property.getName()+"\"", CssDslPackage.Literals.CSS_DECLARATION__PROPERTY);
    }
    else {
     
      ruleset rs = (ruleset) dec.eContainer();
      List<selector> selectors = rs.getSelectors();
//      Set<CssProperty> selectorProps = new HashSet<>();
//      for (selector selector : selectors) {
//        selectorProps.addAll(extension.getPropertiesForSelector(uri, selector));
//      }
     
View Full Code Here

Examples of civquest.parser.ruleset.Ruleset

       
        JScrollPane fieldScrollPane = new JScrollPane();
        fieldScrollPane.setViewportView(infoPanel);
        newData(gameData);

        Ruleset scenarioRuleset = paneRegistry.getRuleset(
                "scenarioEditorInfoPaneManager");
        RulesetGameChangeLoader.addListener(
                scenarioRuleset.getSection("listensAll"), this,
                GameChangeManager.Listening.ALL_NATIONS);
//        RulesetGameChangeLoader.addListener(
//                scenarioRuleset.getSection("listensCurrent"), this);
        this.setUpFunctions(paneRegistry);
    }
View Full Code Here

Examples of com.buschmais.jqassistant.core.analysis.api.rule.RuleSet

  @Override
  public void aggregate(MavenProject baseProject, Set<MavenProject> projects, Store store) throws MojoExecutionException,
      MojoFailureException {
    getLog().info("Effective rules for '" + baseProject.getName() + "'.");
    RuleSet targetRuleSet = resolveEffectiveRules(baseProject);
    logRuleSet(targetRuleSet);
  }
View Full Code Here

Examples of com.buschmais.jqassistant.core.model.api.rule.RuleSet

* Implementation of the {@link RuleSelector}.
*/
public class RuleSelectorImpl implements RuleSelector {
    @Override
    public RuleSet getEffectiveRuleSet(RuleSet ruleSet, List<String> conceptNames, List<String> constraintNames, List<String> groupNames) throws RuleSetResolverException {
        RuleSet effectiveRuleSet = new RuleSet();
        // Use the default group if no group, constraint or concept is specified.
        List<String> selectedGroupNames;
        if (CollectionUtils.isEmpty(groupNames) && CollectionUtils.isEmpty(constraintNames) && CollectionUtils.isEmpty(conceptNames)) {
            selectedGroupNames = Arrays.asList(new String[]{DEFAULT_GROUP});
        } else {
View Full Code Here

Examples of com.crappycomic.solarquest.model.RuleSet

   RuleSet getRuleSet()
   {
      if (!ok)
         return null;
     
      RuleSet ruleSet = new RuleSet();
     
      for (Map.Entry<Rule<?>, Object> entry : rules.entrySet())
      {
         switch (entry.getKey().getType())
         {
            case INTEGER:
               ruleSet.setValue(entry.getKey(), ((JSpinner)entry.getValue()).getValue().toString());
               break;
            case BOOLEAN:
            case TRANSACTION_AVAILABILITY:
            case RED_SHIFT_ROLL_TYPE:
               ruleSet.setValue(entry.getKey(), ((JComboBox)entry.getValue()).getSelectedItem().toString());
               break;
         }
      }
     
      return ruleSet;
View Full Code Here

Examples of com.dtrules.session.RuleSet

     *                    assumed that this Entity already exists.
     * @return true if the attribute was successfully added.
   */
  public boolean createAttribute(final String rulesetname, final REntityEntry attribute) {
        try {
            RuleSet  rs     = getRuleset(rulesetname);
            IREntity entity = rs.getEntityFactory(session).findRefEntity(attribute.attribute);
            entity.addAttribute(attribute);
            return true;
        } catch (RulesException e) {
            return false;
        }
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.RuleSet

    HiddenTokenAwareTree charset = children.get(1);
    return new CharsetDeclaration(token, termBuilder.createCssString(charset, charset.getText()));
  }

  public RuleSet handleRuleSet(HiddenTokenAwareTree token) {
    RuleSet ruleSet = new RuleSet(token);

    List<Selector> selectors = new ArrayList<Selector>();
    List<Guard> guards = new ArrayList<Guard>();
    List<HiddenTokenAwareTree> children = token.getChildren();

    ASTCssNode previousKid = null;
    for (HiddenTokenAwareTree kid : children) {
      if (kid.getType() == LessLexer.SELECTOR) {
        Selector selector = handleSelector(kid);
        if (selector != null)
          selectors.add(selector);
        previousKid = selector;
      } else if (kid.getType() == LessLexer.BODY) {
        GeneralBody body = handleGeneralBody(kid);
        ruleSet.setBody(body);
        previousKid = body;
      } else if (kid.getType() == LessLexer.GUARD) {
        guards.add(handleGuard(kid));
      } else if (kid.getType() == LessLexer.COMMA) {
        if (previousKid != null)
          previousKid.getUnderlyingStructure().addFollowing(kid.getPreceding());
      }
    }

    ruleSet.addSelectors(selectors);
    ruleSet.addGuards(guards);
    return ruleSet;
  }
View Full Code Here

Examples of com.hp.jena.rules.ast.RuleSet

    {
    public static void main( String args[] ) throws ParseException
        {
        InputStream in = args.length == 0 ? System.in : inFromFile( args[0] );
        JenaRules parser = new JenaRules( in );
        RuleSet rs = parser.ruleset();
        rs.prettyPrint( System.out );
        }
View Full Code Here

Examples of com.hp.jena.ymris.yast.RuleSet

            }
        }
   
    @Override public void rebind()
        {
        RuleSet ruleSet = reasoner.ruleSet;
        deductions.getBulkUpdateHandler().removeAll();
        BindingSink output = new BindingSink()
            {           
            @Override public void consume( Node[] item )
                { deductions.add( asTriple( item ) ); }

            private Triple asTriple( Node[] item )
                { return Triple.create( item[1], item[2], item[3] ); }
            };
        BindingSink input = ruleSet.toCode( reasoner.getHowTo( this ), output );
        input.start();
        for (Iterator<Triple> it = base.find( Triple.ANY ); it.hasNext();)
            input.consume( asBinding( it.next() ) );
        }
View Full Code Here

Examples of com.sun.org.apache.commons.digester.RuleSet

     * context configuration descriptor for an application.
     */
    protected static Digester createContextDigester() {
        Digester digester = new Digester();
        digester.setValidating(false);
        RuleSet contextRuleSet = new ContextRuleSet("", false);
        digester.addRuleSet(contextRuleSet);
        RuleSet namingRuleSet = new NamingRuleSet("Context/");
        digester.addRuleSet(namingRuleSet);
        return digester;
    }
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.