Examples of addAttribute()


Examples of railo.transformer.bytecode.statement.udf.Function.addAttribute()

    comments(data);
     
    // attributes
    Attribute[] attrs = attributes(null,null,data,SEMI_BLOCK,LitString.EMPTY,Boolean.TRUE,null,false);
    for(int i=0;i<attrs.length;i++){
      func.addAttribute(attrs[i]);
    }
     
    // body
    boolean oldInsideFunction=data.insideFunction;
    data.insideFunction=true;

Examples of tigase.xml.Element.addAttribute()

      Element query = iq.getChild("query");
      List<StatRecord> stats = getAllStats();
      if (stats != null && stats.size() > 0) {
        for (StatRecord record: stats) {
          Element item = new Element("stat");
          item.addAttribute("name", record.getComponent() + "/"
            + record.getDescription());
          item.addAttribute("units", record.getUnit());
          item.addAttribute("value", record.getValue());
          query.addChild(item);
        } // end of for ()

Examples of ucar.nc2.Group.addAttribute()

    Variable v = ds.findVariable("time_offset");
    v.addAttribute(new Attribute( "units", "seconds since "+dfo.toDateTimeString(start)));

    Group root = ds.getRootGroup();
    root.addAttribute(new Attribute( "Convention", "Suomi-Station-CDM"));   
    ds.finish();
  }

  protected AxisType getAxisType(NetcdfDataset ncDataset, VariableEnhanced v) {
    String name =  v.getShortName();

Examples of ucar.nc2.Variable.addAttribute()

            Dimension ncDim = new Dimension(name, size, true);
            ncFile.addDimension(null, ncDim);
            if (name.equals(ENS_VAR)) {
                v = new Variable(ncFile, null, null, name, DataType.STRING,
                                 name);
                v.addAttribute(new Attribute("standard_name", "ensemble"));
                v.addAttribute(new Attribute(_Coordinate.AxisType,
                                             AxisType.Ensemble.toString()));
                List<String> names =
                    gradsDDF.getEnsembleDimension().getEnsembleNames();
                String[] nameArray = new String[names.size()];

Examples of ucar.nc2.dataset.VariableDS.addAttribute()

    try {
      Date d = format.parse(dateS+timeS);
      VariableDS time = new VariableDS(ds, vhrr, null, "time", DataType.LONG, "",
          "seconds since 1970-01-01 00:00", "time generated from PRODUCT_METADATA/PRODUCT_DETAILS");

      time.addAttribute( new Attribute(_Coordinate.AxisType, AxisType.Time.toString())); // // LOOK : cant handle scalar coordinates yet ??
      time.addAttribute( new Attribute("IsoDate", new DateFormatter().toDateTimeStringISO(d)));
      ds.addVariable(vhrr, time);
      ArrayLong.D0 timeData = new ArrayLong.D0();
      timeData.set(d.getTime() / 1000);
      time.setCachedData(timeData, true);

Examples of uk.co.brunella.osgi.bdt.repository.model.AttributeElement.addAttribute()

          element = new AttributeElement();
          elements.add(element);
        }
        element.addValue(tokenizer.getValue());
      } else if (type == Tokenizer.ATTRIBUTE) {
        element.addAttribute(tokenizer.getName(), tokenizer.getValue());
      } else if (type == Tokenizer.DIRECTIVE) {
        element.addDirective(tokenizer.getName(), tokenizer.getValue());
      } else if (type == Tokenizer.SEPARATOR) {
        element = null;
      }

Examples of vg.core.graph.Edge.addAttribute()

  public synchronized Edge getEdge() {
    Edge e = new Edge(this.source.getVertex(), this.target.getVertex(), this.id);
    for(StorableAttribute bufAttribute : this.attributes) {
      Attribute attr = bufAttribute.getAttribute();
      if(attr != null) {
        e.addAttribute(attr.getName(), attr.getValue());
      }
    }
    return(e);
  }
  public synchronized List<Attribute> getAttributes() {

Examples of vg.core.graph.Vertex.addAttribute()

    return(this.storableId);
  }
  public synchronized Vertex getVertex() {
    Vertex v = new Vertex(this.id);
    for(StorableAttribute bufAttribte : this.attributes) {
      v.addAttribute(bufAttribte.getName(), bufAttribte.getValue());       
    }
    v.setInnerGraph(this.innerGraphId);
    return(v);
  }
  public synchronized String toString() {

Examples of xsul.lead.LeadResourceMapping.addAttribute()

          for (Node n : wsNode.getControlInPort().getFromNodes()) {
            if (n instanceof InstanceNode){
              //TODO make it as constant
              LeadResourceMapping x = new LeadResourceMapping("AMAZON");
             
              x.addAttribute("ACCESS_KEY", AmazonCredential.getInstance().getAwsAccessKeyId());
              x.addAttribute("SECRET_KEY", AmazonCredential.getInstance().getAwsSecretAccessKey());             
                           
              if(((InstanceNode) n).isStartNewInstance()){
                x.addAttribute("AMI_ID", ((InstanceNode) n).getIdAsValue());
                x.addAttribute("INS_TYPE", ((InstanceNode) n).getInstanceType());               
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.