Examples of addAttribute()


Examples of org.apache.ecs.xml.XML.addAttribute()

            Entry e = (Entry)i.next();
           
            String url = e.getURL();
           
            XML item = new XML( "item" );
            item.addAttribute( "rdf:about", url );
           
            item.addElement( new XML("title").addElement( format(e.getTitle()) ) );

            item.addElement( new XML("link").addElement( url ) );

Examples of org.apache.empire.struts2.html.HtmlWriter.HtmlTag.addAttribute()

            if (disabled==false)
            {
                String url = getUrl();

                HtmlTag a = htmlWriter.startTag("a");
                a.addAttribute("id",       this.getId());
                a.addAttribute("href",     url);
        a.addAttribute("target",   this.target);
                a.addAttribute("class",    this.cssClass);
                a.addAttribute("style",    this.cssStyle);
                a.addAttribute("onclick"this.onclick);

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

    private Element newManipulationElement(boolean complete) {
        Element manipulation = new Element("manipulation", null);
        if (complete) {
            Element field = new Element("field", null);
            field.addAttribute(new Attribute("name", "property"));
            manipulation.addElement(field);
        }

        return manipulation;
    }

Examples of org.apache.flex.compiler.internal.embedding.EmbedData.addAttribute()

        boolean hadError = false;
        for (IMetaTagAttribute attribute : attributes)
        {
            String key = attribute.getKey();
            String value = attribute.getValue();
            if (data.addAttribute(project, location, key, value, problems))
            {
                hadError = true;
            }
        }

Examples of org.apache.flink.test.recordJobs.util.Tuple.addAttribute()

   
    /* pice = extendedprice * (1 - discount): */
    float price = Float.parseFloat(inputTuple.getStringValueAt(5)) * (1 - Float.parseFloat(inputTuple.getStringValueAt(6)));
    /* Project (orderkey | partkey, suppkey, linenumber, quantity, extendedprice, discount, tax, ...) to (partkey, suppkey, quantity): */
    inputTuple.project((0 << 0) | (1 << 1) | (1 << 2) | (0 << 3) | (1 << 4));
    inputTuple.addAttribute("" + price);
    record.setField(1, inputTuple);
    out.collect(record);
  }

}

Examples of org.apache.geronimo.gbean.GBeanInfoBuilder.addAttribute()

            getters.keySet().retainAll(setters);
            getters.remove("resourceAdapter");

            for (Iterator iterator = getters.entrySet().iterator(); iterator.hasNext();) {
                Map.Entry entry = (Map.Entry) iterator.next();
                infoBuilder.addAttribute(new DynamicGAttributeInfo((String) entry.getKey(), (String) entry.getValue(), true, false, true, true));
            }

            GBeanInfo gbeanInfo = infoBuilder.getBeanInfo();
            try {
                //make sure the class is available, but we don't use it.

Examples of org.apache.geronimo.gbean.GBeanInfoFactory.addAttribute()

    }

    public GBeanInfo getGbeanInfo() {
        GBeanInfoFactory infoFactory = new GBeanInfoFactory(TestProxyFactory.class);
        infoFactory.addAttribute("Content", true);
        infoFactory.addOperation("getProxy");
        infoFactory.setConstructor(new String[] {"Content"}, new Class[] {Object.class});
        return infoFactory.getBeanInfo();
    }
}

Examples of org.apache.geronimo.twiddle.config.CommandConfig.addAttribute()

        Attribute attr = new Attribute();
        String text = "this is the value for the text attribute";
        attr.setName("text");
        attr.setContent(text);
        config.addAttribute(attr);

        CommandInfo protoInfo = new CommandInfo(config, world);
        Command command = protoInfo.getPrototype();

        // Verify that the text attribute was set correctly

Examples of org.apache.gora.dynamodb.store.DynamoDBMapping.DynamoDBMappingBuilder.addAttribute()

        // Retrieving attributes
        fieldElements = tableElement.getChildren("attribute");
        for(Element fieldElement : fieldElements) {
          String attributeName  = fieldElement.getAttributeValue("name");
          String attributeType = fieldElement.getAttributeValue("type");
          mappingBuilder.addAttribute(tableName, attributeName, attributeType, 0);
        }
        LOG.debug("Table attributes have been read.");
      }

    } catch(IOException ex) {

Examples of org.apache.hadoop.hbase.stargate.model.ColumnSchemaModel.addAttribute()

      for (HColumnDescriptor hcd: htd.getFamilies()) {
        ColumnSchemaModel columnModel = new ColumnSchemaModel();
        columnModel.setName(hcd.getNameAsString());
        for (Map.Entry<ImmutableBytesWritable, ImmutableBytesWritable> e:
          hcd.getValues().entrySet()) {
        columnModel.addAttribute(Bytes.toString(e.getKey().get()),
          Bytes.toString(e.getValue().get()));
      }
        model.addColumnFamily(columnModel);
      }
      ResponseBuilder response = Response.ok(model);
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.