Examples of addRule()


Examples of org.geotools.styling.FeatureTypeStyle.addRule()

        FeatureTypeStyle fts = sldContentManager.getDefaultFeatureTypeStyle();
        fts.setFeatureTypeName(SLDs.GENERIC_FEATURE_TYPENAME);
        fts.setName("simple"); //$NON-NLS-1$
        fts.setSemanticTypeIdentifiers(new String[] {"generic:geometry", "simple"}); //$NON-NLS-1$ //$NON-NLS-2$
       
        fts.addRule(rule);
        style.addFeatureTypeStyle(fts);
        style.setName("simpleStyle");       
       
        return style;
    }
View Full Code Here

Examples of org.glite.authz.pap.common.xacml.wizard.PolicyWizard.addRule()

            policyId = candidatePolicy.getPolicyId();
            updateOperationForPolicy = true;
            policySetNeedToBeSaved = false;
        }

        targetPolicyWizard.addRule(0, banAttributeWizard, EffectType.Deny);

        // Store the ban policy and the policy set in which it is contained
        // (only if needed)
        if (policySetNeedToBeSaved) {
            if (updateOperationForPolicySet) {
View Full Code Here

Examples of org.huihoo.willow.util.WillowDigester.addRule()

   
    digester.addObjectCreate(
      "Server/Service/NamingServer",
      "org.huihoo.willow.core.StandardNamingServer",
      "className");
    digester.addRule("Server/Service/NamingServer", new SetAllPropertiesRule());
    digester.addSetNext(
      "Server/Service/NamingServer",
      "setNamingServer",
      "org.huihoo.willow.NamingServer");
           
View Full Code Here

Examples of org.jfree.layouting.input.style.CSSPageRule.addRule()

        if (areaName.equalsIgnoreCase(pageArea.getName()))
        {
          final CSSPageAreaRule areaRule = parsePageRule(pageArea, atRule);
          if (areaRule != null)
          {
            pageRule.addRule(areaRule);
          }
          return;
        }
      }
      logger.info("Did not recognize page @rule: " + atRule);
View Full Code Here

Examples of org.languagetool.JLanguageTool.addRule()

  private JLanguageTool getLanguageToolWithOneRule(Language lang, PatternRule patternRule) throws IOException {
    final JLanguageTool langTool = new JLanguageTool(lang);
    for (Rule rule : langTool.getAllActiveRules()) {
      langTool.disableRule(rule.getId());
    }
    langTool.addRule(patternRule);
    return langTool;
  }

  class PossiblyLimitedTopDocs {
    TopDocs topDocs;
View Full Code Here

Examples of org.locationtech.udig.style.advanced.common.styleattributeclasses.FeatureTypeStyleWrapper.addRule()

                if (selectedFtsw == null) {
                    MessageDialog.openWarning(addButton.getShell(), Messages.PointPropertiesEditor_7,
                            Messages.PointPropertiesEditor_8);
                    return;
                }
                RuleWrapper addedRuleWrapper = selectedFtsw.addRule(null, PointSymbolizerWrapper.class);
                String tmpName = Messages.PointPropertiesEditor_9;
                tmpName = Utilities.checkSameNameRule(addedRuleWrapper.getParent().getRulesWrapperList(), tmpName);
                addedRuleWrapper.setName(tmpName);

                reloadGroupsAndRules();
View Full Code Here

Examples of org.midonet.client.resource.RuleChain.addRule()

                                    defaultBlock = true;
                                    break;
                                }
                            }
                            if (!defaultBlock) {
                                preFilter.addRule().type(DtoRule.Drop)
                                    .nwDstAddress(publicIp)
                                    .nwDstLength(32)
                                    .create();
                            }
                        }
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addRule()

    List<RuleAtom> body = new ArrayList<RuleAtom>();
    List<RuleAtom> head = new ArrayList<RuleAtom>();

    body.add( new ClassAtom( D, x ) );

    kb.addRule( new Rule( head, body ) );

    assertFalse( kb.isConsistent() );
  }

  @Test
View Full Code Here

Examples of org.ocpsoft.rewrite.config.ConfigurationBuilder.addRule()

      {
         List<RewriteRule> rules = config.getGlobalRewriteRules();
         List<UrlMapping> mappings = config.getMappings();

         for (RewriteRule rule : rules) {
            builder.addRule(new InboundRewriteRuleAdaptor(rule));
         }

         for (UrlMapping mapping : mappings) {
            builder.addRule(new UrlMappingRuleAdaptor(mapping));
         }
View Full Code Here

Examples of org.pdf4j.saxon.trans.Mode.addRule()

            pat.setLineNumber(getLineNumber());
            NodeTest nt;
            if (s.equals("*")) {
                nt = AnyNodeTest.getInstance();
                pat.setNodeTest(nt);
                stripperRules.addRule(
                            pat,
                            preserve,
                            getPrecedence(),
                            -0.5, true);

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.