Examples of addAttribute()


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

      HTableDescriptor htd = getTableSchema();
      TableSchemaModel model = new TableSchemaModel();
      model.setName(htd.getNameAsString());
      for (Map.Entry<ImmutableBytesWritable, ImmutableBytesWritable> e:
          htd.getValues().entrySet()) {
        model.addAttribute(Bytes.toString(e.getKey().get()),
            Bytes.toString(e.getValue().get()));
      }
      for (HColumnDescriptor hcd: htd.getFamilies()) {
        ColumnSchemaModel columnModel = new ColumnSchemaModel();
        columnModel.setName(hcd.getNameAsString());

Examples of org.apache.harmony.pack200.bytecode.CodeAttribute.addAttribute()

                    methodAttributes[c][m].add(codeAttr);
                    codeAttr.renumber(codeAttr.byteCodeOffsets);
                 ArrayList currentAttributes = (ArrayList)orderedCodeAttributes.get(i);
                 for(int index=0;index < currentAttributes.size(); index++) {
                     Attribute currentAttribute = (Attribute)currentAttributes.get(index);
                     codeAttr.addAttribute(currentAttribute);
                     // Fix up the line numbers if needed
                     if(currentAttribute.hasBCIRenumbering()) {
                         ((BCIRenumberedAttribute)currentAttribute).renumber(codeAttr.byteCodeOffsets);
                     }
                 }

Examples of org.apache.harmony.unpack200.bytecode.CodeAttribute.addAttribute()

                        }
                    }
                    for (int index = 0; index < currentAttributes.size(); index++) {
                        Attribute currentAttribute = (Attribute) currentAttributes
                                .get(index);
                        codeAttr.addAttribute(currentAttribute);
                        // Fix up the line numbers if needed
                        if (currentAttribute.hasBCIRenumbering()) {
                            ((BCIRenumberedAttribute) currentAttribute)
                                    .renumber(codeAttr.byteCodeOffsets);
                        }

Examples of org.apache.helix.controller.stages.ClusterEvent.addAttribute()

    }

    try
    {
      ClusterEvent event = new ClusterEvent("healthChange");
      event.addAttribute("helixmanager", _manager);
      event.addAttribute("HelixStageLatencyMonitorMap", _stageLatencyMonitorMap);

      _healthStatsAggregationPipeline.handle(event);
      _healthStatsAggregationPipeline.finish();
    }

Examples of org.apache.hivemind.impl.ElementImpl.addAttribute()

        int count = attributes.getLength();
        for (int i = 0; i < count; i++)
        {
            Attribute a = new AttributeImpl(attributes.getLocalName(i), attributes.getValue(i));

            result.addAttribute(a);
        }

        if (_root == null)
            _root = result;
        else

Examples of org.apache.hivemind.parse.ElementParseInfo.addAttribute()

        boolean required = value.equalsIgnoreCase("true");

        ElementParseInfo epi = getElementParseInfo(elementName);

        epi.addAttribute(attributeName, required);
    }

    private void close(InputStream stream)
    {
        try

Examples of org.apache.isis.viewer.xhtml.viewer.tree.Element.addAttribute()

        final ObjectSpecification noSpec = nakedObject.getSpecification();
        final String oidStr = getOidStr(nakedObject);

        final Element div = new Element("div");
        div.addAttribute(new Attribute("class", HtmlClass.OBJECT_SPECS));
        final Element table = new Element("table");
        table.addAttribute(new Attribute("border", "1"));
        div.appendChild(table);

        Element value;

Examples of org.apache.ivyde.common.model.IvyTag.addAttribute()

        super(settings);

        // ivy-module
        IvyTag ivyTag = new IvyTag("ivy-module", "root tag of ivy file");
        ivyTag.setDoc("Root tag of any ivy-file.");
        ivyTag.addAttribute(new IvyTagAttribute("version",
                "The version of the ivy file specification \n"
                        + "should be '2.0' with current version of ivy", true));
        addTag(ivyTag);

        IValueProvider defaultOrganizationProvider = new IValueProvider() {

Examples of org.apache.lucene.analysis.LowerCaseTokenizer.addAttribute()

   *      java.io.Reader)
   */
  @Override
  public TokenStream tokenStream(String arg0, Reader arg1) {
    LowerCaseTokenizer stream = new LowerCaseTokenizer(arg1);
    stream.addAttribute(TermAttribute.class);
    stream.addAttribute(PositionIncrementAttribute.class);
    stream.addAttribute(OffsetAttribute.class);
    return new SynonymTokenizer(stream, synonyms);
  }
}

Examples of org.apache.lucene.analysis.MockTokenizer.addAttribute()

 
  public void testCustomAttribute() throws IOException {
    TokenStream stream = new MockTokenizer(new StringReader("D'Angelo"), MockTokenizer.KEYWORD, false);
    stream = new PatternKeywordMarkerFilter(stream, Pattern.compile(".*"));
    stream = new BeiderMorseFilter(stream, new PhoneticEngine(NameType.GENERIC, RuleType.EXACT, true));
    KeywordAttribute keyAtt = stream.addAttribute(KeywordAttribute.class);
    stream.reset();
    int i = 0;
    while(stream.incrementToken()) {
      assertTrue(keyAtt.isKeyword());
      i++;
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.