Examples of ElementSelector


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

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetElement(ElementSelector newElement, NotificationChain msgs)
  {
    ElementSelector oldElement = element;
    element = newElement;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CssDslPackage.SIMPLE_SELECTOR_FOR_NEGATION__ELEMENT, oldElement, newElement);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  @Override
  public void addInstanceRules(RuleStore rs) {
    // parent rules already added
    super.addInstanceRules(rs);

    rs.addRule(new ElementSelector("configuration"), new ConfigurationAction());

    rs.addRule(new ElementSelector("configuration/contextName"),
        new ContextNameAction());
      rs.addRule(new ElementSelector("configuration/contextListener"),
        new LoggerContextListenerAction());
    rs.addRule(new ElementSelector("configuration/insertFromJNDI"),
        new InsertFromJNDIAction());
    rs.addRule(new ElementSelector("configuration/evaluator"), new EvaluatorAction());

    rs.addRule(new ElementSelector("configuration/appender/sift"), new SiftAction());
    rs.addRule(new ElementSelector("configuration/appender/sift/*"), new NOPAction());

    rs.addRule(new ElementSelector("configuration/logger"), new LoggerAction());
    rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());

    rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
    rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
    rs.addRule(new ElementSelector("configuration/logger/appender-ref"),
        new AppenderRefAction());
    rs.addRule(new ElementSelector("configuration/root/appender-ref"),
        new AppenderRefAction());
   
    // add if-then-else support
    rs.addRule(new ElementSelector("*/if"), new IfAction());
    rs.addRule(new ElementSelector("*/if/then"), new ThenAction());
    rs.addRule(new ElementSelector("*/if/then/*"), new NOPAction());
    rs.addRule(new ElementSelector("*/if/else"), new ElseAction());
    rs.addRule(new ElementSelector("*/if/else/*"), new NOPAction());
   
    // add jmxConfigurator only if we have JMX available.
    // If running under JDK 1.4 (retrotranslateed logback) then we
    // might not have JMX.
    if (PlatformInfo.hasJMXObjectName()) {
      rs.addRule(new ElementSelector("configuration/jmxConfigurator"),
          new JMXConfiguratorAction());
    }
    rs.addRule(new ElementSelector("configuration/include"), new IncludeAction());

    rs.addRule(new ElementSelector("configuration/consolePlugin"),
        new ConsolePluginAction());
   
    rs.addRule(new ElementSelector("configuration/receiver"),
        new ReceiverAction());
   
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  }
 
  @Override
  protected void addInstanceRules(RuleStore rs) {
    super.addInstanceRules(rs);
    rs.addRule(new ElementSelector("configuration/appender"), new AppenderAction());
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  @Override
  protected void addInstanceRules(RuleStore rs) {

    // is "configuration/variable" referenced in the docs?
    rs.addRule(new ElementSelector("configuration/variable"), new PropertyAction());
    rs.addRule(new ElementSelector("configuration/property"), new PropertyAction());

    rs.addRule(new ElementSelector("configuration/substitutionProperty"),
        new PropertyAction());

    rs.addRule(new ElementSelector("configuration/timestamp"), new TimestampAction());
    rs.addRule(new ElementSelector("configuration/shutdownHook"), new ShutdownHookAction());
    rs.addRule(new ElementSelector("configuration/define"), new DefinePropertyAction());

    // the contextProperty pattern is deprecated. It is undocumented
    // and will be dropped in future versions of logback
    rs.addRule(new ElementSelector("configuration/contextProperty"),
        new ContextPropertyAction());

    rs.addRule(new ElementSelector("configuration/conversionRule"),
        new ConversionRuleAction());

    rs.addRule(new ElementSelector("configuration/statusListener"),
        new StatusListenerAction());

    rs.addRule(new ElementSelector("configuration/appender"), new AppenderAction());
    rs.addRule(new ElementSelector("configuration/appender/appender-ref"),
        new AppenderRefAction());
    rs.addRule(new ElementSelector("configuration/newRule"), new NewRuleAction());
    rs.addRule(new ElementSelector("*/param"), new ParamAction());
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  HashMap<ElementSelector, Action> rulesMap = new HashMap<ElementSelector, Action>();

  public void doTest(String filename) throws Exception {

    // rule store is case insensitve
    rulesMap.put(new ElementSelector("x/inc"), new IncAction());

    TrivialConfigurator trivialConfigurator = new TrivialConfigurator(rulesMap);

    trivialConfigurator.setContext(context);
    trivialConfigurator.doConfigure(filename);
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

 
  @Before
  public void setUp() throws Exception {
    HashMap<ElementSelector, Action> rulesMap = new HashMap<ElementSelector, Action>();
    rulesMap.put(new ElementSelector("x"), new NOPAction());
    rulesMap.put(new ElementSelector("x/stack"), stackAction);
    rulesMap.put(new ElementSelector("*/if"), new IfAction());
    rulesMap.put(new ElementSelector("*/if/then"), new ThenAction());
    rulesMap.put(new ElementSelector("*/if/then/*"), new NOPAction());
    rulesMap.put(new ElementSelector("*/if/else"), new ElseAction());
    rulesMap.put(new ElementSelector("*/if/else/*"), new NOPAction());
    rulesMap.put(new ElementSelector("x/include"), new IncludeAction());
   
    tc = new TrivialConfigurator(rulesMap);
    tc.setContext(context);
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  }

  void doTest(String filename, Integer expectedInt, Class<?> exceptionClass)
      throws Exception {

    rulesMap.put(new ElementSelector("test"), new NOPAction());
    rulesMap.put(new ElementSelector("test/badBegin"), new BadBeginAction());
    rulesMap.put(new ElementSelector("test/badBegin/touch"), new TouchAction());
    rulesMap.put(new ElementSelector("test/badEnd"), new BadEndAction());
    rulesMap.put(new ElementSelector("test/badEnd/touch"), new TouchAction());
    rulesMap.put(new ElementSelector("test/hello"), new HelloAction());

    rulesMap.put(new ElementSelector("test/isolate"), new NOPAction());
    rulesMap.put(new ElementSelector("test/isolate/badEnd"), new BadEndAction());
    rulesMap.put(new ElementSelector("test/isolate/badEnd/touch"), new TouchAction());
    rulesMap.put(new ElementSelector("test/isolate/touch"), new TouchAction());
    rulesMap.put(new ElementSelector("test/hello"), new HelloAction());

    TrivialConfigurator tc = new TrivialConfigurator(rulesMap);
    tc.setContext(context);
    tc.doConfigure(CoreTestConstants.TEST_SRC_PREFIX + "input/joran/skip/" + filename);
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  StackAction stackAction = new StackAction();

  @Before
  public void setUp() throws Exception {
    HashMap<ElementSelector, Action> rulesMap = new HashMap<ElementSelector, Action>();
    rulesMap.put(new ElementSelector("x"), new NOPAction());
    rulesMap.put(new ElementSelector("x/stack"), stackAction);
    rulesMap.put(new ElementSelector("x/property"), new PropertyAction());
    rulesMap.put(new ElementSelector("*/if"), new IfAction());
    rulesMap.put(new ElementSelector("*/if/then"), new ThenAction());
    rulesMap.put(new ElementSelector("*/if/then/*"), new NOPAction());
    rulesMap.put(new ElementSelector("*/if/else"), new ElseAction());
    rulesMap.put(new ElementSelector("*/if/else/*"), new NOPAction());

    tc = new TrivialConfigurator(rulesMap);
    tc.setContext(context);
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  @Before
  public void setUp() throws Exception {
    FileTestUtil.makeTestOutputDir();
    HashMap<ElementSelector, Action> rulesMap = new HashMap<ElementSelector, Action>();
    rulesMap.put(new ElementSelector("x"), new NOPAction());
    rulesMap.put(new ElementSelector("x/include"), new IncludeAction());
    rulesMap.put(new ElementSelector("x/stack"), stackAction);

    tc = new TrivialConfigurator(rulesMap);
    tc.setContext(context);
  }
View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ElementSelector

  @Before
  public void setUp() throws Exception {

    HashMap<ElementSelector, Action> rulesMap = new HashMap<ElementSelector, Action>();
    rulesMap.put(new ElementSelector("define"), new DefinePropertyAction());
    simpleConfigurator = new SimpleConfigurator(rulesMap);
    simpleConfigurator.setContext(context);
  }
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.