Examples of attribute()


Examples of org.znerd.xmlenc.XMLOutputter.attribute()

            final ContentSummary cs = nnproxy.getContentSummary(path);

            //write xml
            xml.startTag(ContentSummary.class.getName());
            if (cs != null) {
              xml.attribute("length"        , "" + cs.getLength());
              xml.attribute("fileCount"     , "" + cs.getFileCount());
              xml.attribute("directoryCount", "" + cs.getDirectoryCount());
              xml.attribute("quota"         , "" + cs.getQuota());
              xml.attribute("spaceConsumed" , "" + cs.getSpaceConsumed());
              xml.attribute("spaceQuota"    , "" + cs.getSpaceQuota());
View Full Code Here

Examples of se.kth.speech.skatta.util.ExtendedElement.attribute()

    public void load(ExtendedElement e) {
        m_nameField.setText(e.attribute("name"));
        m_passwordField.setText(e.attribute("password"));
        ExtendedElement buttons = e.child("buttons");
        m_upField.setText(buttons.attribute("up"));
        m_downField.setText(buttons.attribute("down"));
        m_nextField.setText(buttons.attribute("next"));
        m_previousField.setText(buttons.attribute("previous"));
        m_startField.setText(buttons.attribute("start"));
        m_endField.setText(buttons.attribute("end"));
View Full Code Here

Examples of weka.core.Instance.attribute()

   
    oldValue = getValueAt(rowIndex, columnIndex);
    type     = getType(rowIndex, columnIndex);
    index    = columnIndex - 1;
    inst     = m_Data.instance(rowIndex);
    att      = inst.attribute(index);
   
    // missing?
    if (aValue == null) {
      inst.setValue(index, Utils.missingValue());
    }
View Full Code Here

Examples of weka.core.Instances.attribute()

  if (i==toFilter.classIndex()) continue; // skip class
  AttributeStats stats = toFilter.attributeStats(i);
  if (stats.distinctCount < 2) {
    // remove constant attributes
    attsToDelete[numToDelete++] = i;
  } else if (toFilter.attribute(i).isNominal()) {
    // remove nominal attributes that vary too much
    double variancePercent = (double) stats.distinctCount
      / (double)(stats.totalCount - stats.missingCount) * 100.0;
    if (variancePercent > m_maxVariancePercentage) {
        attsToDelete[numToDelete++] = i;
View Full Code Here

Examples of wyrl.core.Expr.attribute()

    // second, generate all the for loops
    for (int i = 0; i != sources.length; ++i) {
      Pair<Expr.Variable, Expr> p = expr.sources.get(i);
      Expr.Variable variable = p.first();
      Expr source = p.second();
      Type.Collection sourceType = (Type.Collection) source
          .attribute(Attribute.Type.class).type;
      Type elementType = variable.attribute(Attribute.Type.class).type;
      int index = environment.allocate(elementType, variable.var);
      myOut(level++, "for(int i" + index + "=0;i" + index + "<r"
          + sources[i] + ".size();i" + index + "++) {");
View Full Code Here

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMElement.attribute()

            }
        } else {
            assert (node instanceof DTMElement);
            DTMElement e = ((DTMElement) node);
            DTMAttribute att = null;
            for(int i = 0; (att = e.attribute(0)) != null; i++) {
                final String attPrefix = att.nodeName().getPrefix();
                if(prefix.equals(attPrefix)) {
                    final String nsuri = att.getNamespaceURI();
                    return nsuri;
                }
View Full Code Here

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMElement.attribute()

        } else {
            // TODO performance improvement!
            assert (n1 instanceof DTMElement && n2 instanceof DTMElement);
            DTMElement e1 = (DTMElement) n1, e2 = (DTMElement) n2;
            DTMAttribute att1 = null;
            for(int i = 0; (att1 = e1.attribute(i)) != null; i++) {
                DTMAttribute att2 = e2.attribute(i);
                if(!att1.nodeName().equals(att2.nodeName())) {
                    return false;
                }
                final String att1val = att1.getContent();
View Full Code Here

Examples of xbird.xquery.dm.value.node.DMElement.attribute()

    private static boolean attributesEqual(XQNode n1, XQNode n2, Collator collator) {
        assert (n1.nodeKind() == NodeKind.ELEMENT && n2.nodeKind() == NodeKind.ELEMENT);
        if(n1 instanceof DMElement) {
            assert (n2 instanceof DMElement);
            DMElement e1 = (DMElement) n1, e2 = (DMElement) n2;
            Iterator<DMAttribute> a1Itor = e1.attribute().iterator();
            Iterator<DMAttribute> a2Itor = e2.attribute().iterator();
            while(a1Itor.hasNext()) {
                if(!a2Itor.hasNext()) {
                    return false;
                }
View Full Code Here

Examples of xbird.xquery.dm.value.node.DMElement.attribute()

        } else {
            // TODO performance improvement!
            assert (n1 instanceof DTMElement && n2 instanceof DTMElement);
            DTMElement e1 = (DTMElement) n1, e2 = (DTMElement) n2;
            DTMAttribute att1 = null;
            for(int i = 0; (att1 = e1.attribute(i)) != null; i++) {
                DTMAttribute att2 = e2.attribute(i);
                if(!att1.nodeName().equals(att2.nodeName())) {
                    return false;
                }
                final String att1val = att1.getContent();
View Full Code Here

Examples of xmlcomponents.Jode.attribute()

    System.out.println("loading XML configuration node");
    Jode config = root.single("configuration");
    System.out.println("loading XML dimensions node");
    Jode dimensions = config.single("dimensions");
    System.out.println("loading XML dimensions node, screenWidth");
    tileRes_[0]   = Integer.parseInt(dimensions.attribute("screenWidth").v);
    tileRes_[1]   = Integer.parseInt(dimensions.attribute("screenHeight").v);
    numTiles_[0= Integer.parseInt(dimensions.attribute("numTilesWidth").v);
    numTiles_[1= Integer.parseInt(dimensions.attribute("numTilesHeight").v);
    bezels_[0]    = Integer.parseInt(dimensions.attribute("mullionWidth").v);
    System.out.println("loading XML dimensions node, mullionHeight");
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.