Package org.apache.felix.ipojo.metadata

Examples of org.apache.felix.ipojo.metadata.Element.addAttribute()


                "Unknown donut consumer"));
        providesDonutConsumer.addElement(providesDonutConsumerNameProperty);
        Element providesDonutConsumerSlowProperty = new Element("property", "");
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("name",
                "slow"));
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("field",
                "m_isSlow"));
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("value",
                "false"));
        providesDonutConsumer.addElement(providesDonutConsumerSlowProperty);
        m_consumer.addElement(providesDonutConsumer);
View Full Code Here


        Element providesDonutConsumerSlowProperty = new Element("property", "");
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("name",
                "slow"));
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("field",
                "m_isSlow"));
        providesDonutConsumerSlowProperty.addAttribute(new Attribute("value",
                "false"));
        providesDonutConsumer.addElement(providesDonutConsumerSlowProperty);
        m_consumer.addElement(providesDonutConsumer);

        // The event publisher, corresponding to the following description :
View Full Code Here

    public Element getHandlerInfo() {
        Element root = super.getHandlerInfo();
        for (int i = 0; i < m_publishersDescriptions.size(); i++) {
            PublisherDescription p = (PublisherDescription) m_publishersDescriptions.get(i);
            Element publisher = new Element("Publisher", "");
            publisher.addAttribute(new Attribute("name", p.getName()));
            publisher.addAttribute(new Attribute("synchronous", String.valueOf(p.isSynchronous())));
            publisher.addAttribute(new Attribute("data_key", p.getDataKey()));
            Element topics = new Element("Topics", "");
            if (p.getTopics() != null) {
                for (int j = 0; j < p.getTopics().length; j++) {
View Full Code Here

        Element root = super.getHandlerInfo();
        for (int i = 0; i < m_publishersDescriptions.size(); i++) {
            PublisherDescription p = (PublisherDescription) m_publishersDescriptions.get(i);
            Element publisher = new Element("Publisher", "");
            publisher.addAttribute(new Attribute("name", p.getName()));
            publisher.addAttribute(new Attribute("synchronous", String.valueOf(p.isSynchronous())));
            publisher.addAttribute(new Attribute("data_key", p.getDataKey()));
            Element topics = new Element("Topics", "");
            if (p.getTopics() != null) {
                for (int j = 0; j < p.getTopics().length; j++) {
                    String topic = p.getTopics()[j];
View Full Code Here

        for (int i = 0; i < m_publishersDescriptions.size(); i++) {
            PublisherDescription p = (PublisherDescription) m_publishersDescriptions.get(i);
            Element publisher = new Element("Publisher", "");
            publisher.addAttribute(new Attribute("name", p.getName()));
            publisher.addAttribute(new Attribute("synchronous", String.valueOf(p.isSynchronous())));
            publisher.addAttribute(new Attribute("data_key", p.getDataKey()));
            Element topics = new Element("Topics", "");
            if (p.getTopics() != null) {
                for (int j = 0; j < p.getTopics().length; j++) {
                    String topic = p.getTopics()[j];
                    Element e_topic = new Element("topic","");
View Full Code Here

            if (p.getTopics() != null) {
                for (int j = 0; j < p.getTopics().length; j++) {
                    String topic = p.getTopics()[j];
                    Element e_topic = new Element("topic","");
                    topics.addElement(e_topic);
                    e_topic.addAttribute(new Attribute("name",topic));
                }
            }
            publisher.addElement(topics);
            root.addElement(publisher);
        }
View Full Code Here

          String method = definition.getCallback();
          String value = instance.getApamComponent() != null ? instance.getApamComponent().getProperty(name) : null;

          Element property = new Element("property", ApamComponentFactory.APAM_NAMESPACE);
         
          property.addAttribute(new Attribute("name",  ApamComponentFactory.APAM_NAMESPACE,  name));
          property.addAttribute(new Attribute("field", ApamComponentFactory.APAM_NAMESPACE, field != null ? field : ""));
          property.addAttribute(new Attribute("method",ApamComponentFactory.APAM_NAMESPACE, method != null ? method : ""));
          property.addAttribute(new Attribute("value", ApamComponentFactory.APAM_NAMESPACE, value != null ? value : ""));

          root.addElement(property);
View Full Code Here

          String value = instance.getApamComponent() != null ? instance.getApamComponent().getProperty(name) : null;

          Element property = new Element("property", ApamComponentFactory.APAM_NAMESPACE);
         
          property.addAttribute(new Attribute("name",  ApamComponentFactory.APAM_NAMESPACE,  name));
          property.addAttribute(new Attribute("field", ApamComponentFactory.APAM_NAMESPACE, field != null ? field : ""));
          property.addAttribute(new Attribute("method",ApamComponentFactory.APAM_NAMESPACE, method != null ? method : ""));
          property.addAttribute(new Attribute("value", ApamComponentFactory.APAM_NAMESPACE, value != null ? value : ""));

          root.addElement(property);
        }
View Full Code Here

          Element property = new Element("property", ApamComponentFactory.APAM_NAMESPACE);
         
          property.addAttribute(new Attribute("name",  ApamComponentFactory.APAM_NAMESPACE,  name));
          property.addAttribute(new Attribute("field", ApamComponentFactory.APAM_NAMESPACE, field != null ? field : ""));
          property.addAttribute(new Attribute("method",ApamComponentFactory.APAM_NAMESPACE, method != null ? method : ""));
          property.addAttribute(new Attribute("value", ApamComponentFactory.APAM_NAMESPACE, value != null ? value : ""));

          root.addElement(property);
        }
      }
View Full Code Here

          Element property = new Element("property", ApamComponentFactory.APAM_NAMESPACE);
         
          property.addAttribute(new Attribute("name",  ApamComponentFactory.APAM_NAMESPACE,  name));
          property.addAttribute(new Attribute("field", ApamComponentFactory.APAM_NAMESPACE, field != null ? field : ""));
          property.addAttribute(new Attribute("method",ApamComponentFactory.APAM_NAMESPACE, method != null ? method : ""));
          property.addAttribute(new Attribute("value", ApamComponentFactory.APAM_NAMESPACE, value != null ? value : ""));

          root.addElement(property);
        }
      }
      return root;
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.