Examples of nodeName()


Examples of com.trolltech.qt.xml.QDomElement.nodeName()

      QDomNodeList children = element.childNodes()// all children ("t" nodes).
     
      // Go through the children ("t" nodes)
      for (int j=0; j<children.length(); j++) {
          QDomElement child = children.at(j).toElement();
          if (child.nodeName().equalsIgnoreCase("t")) {
            String text = child.text();   // recognition text
            int weight = new Integer(child.attribute("w"))// recognition weight
            if (weight >= Global.getRecognitionWeight()) {   // Are we above the maximum?
             
              // Check to see if this word matches something we were searching for.
View Full Code Here

Examples of com.trolltech.qt.xml.QDomElement.nodeName()

    for (String key : Global.invalidAttributes.keySet()) {
      anchors = doc.elementsByTagName(key);
      int enMediaCount = anchors.length();
      for (int i=enMediaCount-1; i>=0; i--) {
        QDomElement element = anchors.at(i).toElement();
        ArrayList<String> names = Global.invalidAttributes.get(element.nodeName().toLowerCase());
        if (names != null) { 
          for (int j=0; j<names.size(); j++) {
            element.removeAttribute(names.get(j));
          }
        }
View Full Code Here

Examples of com.trolltech.qt.xml.QDomElement.nodeName()

    // expects that a <ul> tag only has a <li>, so we will need to change them
    // to this:  <ul><li><ul><li>1</li></ul></li></ul>
    if (node.nodeName().equalsIgnoreCase("ul")) {
      QDomNode firstChild = node.firstChild();
      QDomElement childElement = firstChild.toElement();
      if (childElement.nodeName().equalsIgnoreCase("ul")) {
        QDomElement newElement = doc.createElement("li");
        node.insertBefore(newElement, firstChild);
        node.removeChild(firstChild);
        newElement.appendChild(firstChild);
      }
View Full Code Here

Examples of org.dcm4che3.conf.api.generic.ConfigClass.nodeName()

        // no annotation - no configuration
        if (ccAnno == null)
            throw new ConfigurationException("The configuration class must be annotated with @ConfigClass");

        if (ccAnno.nodeName().equals(""))
            throw new ConfigurationException("To use java preferences config, specify node name for the config class in @ConfigClass annotation");

        nodename = ccAnno.nodeName();

    }
View Full Code Here

Examples of org.dcm4che3.conf.api.generic.ConfigClass.nodeName()

            throw new ConfigurationException("The configuration class must be annotated with @ConfigClass");

        if (ccAnno.nodeName().equals(""))
            throw new ConfigurationException("To use java preferences config, specify node name for the config class in @ConfigClass annotation");

        nodename = ccAnno.nodeName();

    }

    @Override
    protected void storeChilds(Device device, Preferences deviceNode) throws ConfigurationException {
View Full Code Here

Examples of org.infinispan.configuration.global.TransportConfiguration.nodeName()

   protected void initChannel() {
      final TransportConfiguration transportCfg = configuration.transport();
      if (channel == null) {
         buildChannel();
         String transportNodeName = transportCfg.nodeName();
         if (transportNodeName != null && transportNodeName.length() > 0) {
            long range = Short.MAX_VALUE * 2;
            long randomInRange = (long) ((Math.random() * range) % range) + 1;
            transportNodeName = transportNodeName + "-" + randomInRange;
            channel.setName(transportNodeName);
View Full Code Here

Examples of org.infinispan.configuration.global.TransportConfiguration.nodeName()

   protected void initChannel() {
      final TransportConfiguration transportCfg = configuration.transport();
      if (channel == null) {
         buildChannel();
         String transportNodeName = transportCfg.nodeName();
         if (transportNodeName != null && transportNodeName.length() > 0) {
            long range = Short.MAX_VALUE * 2;
            long randomInRange = (long) ((Math.random() * range) % range) + 1;
            transportNodeName = transportNodeName + "-" + randomInRange;
            channel.setName(transportNodeName);
View Full Code Here

Examples of org.infinispan.configuration.global.TransportConfiguration.nodeName()

   protected void initChannel() {
      final TransportConfiguration transportCfg = configuration.transport();
      if (channel == null) {
         buildChannel();
         String transportNodeName = transportCfg.nodeName();
         if (transportNodeName != null && transportNodeName.length() > 0) {
            long range = Short.MAX_VALUE * 2;
            long randomInRange = (long) ((Math.random() * range) % range) + 1;
            transportNodeName = transportNodeName + "-" + randomInRange;
            channel.setName(transportNodeName);
View Full Code Here

Examples of org.infinispan.configuration.global.TransportConfiguration.nodeName()

   protected void initChannel() {
      final TransportConfiguration transportCfg = configuration.transport();
      if (channel == null) {
         buildChannel();
         String transportNodeName = transportCfg.nodeName();
         if (transportNodeName != null && transportNodeName.length() > 0) {
            long range = Short.MAX_VALUE * 2;
            long randomInRange = (long) ((Math.random() * range) % range) + 1;
            transportNodeName = transportNodeName + "-" + randomInRange;
            channel.setName(transportNodeName);
View Full Code Here

Examples of org.infinispan.configuration.global.TransportConfiguration.nodeName()

   protected void initChannel() {
      final TransportConfiguration transportCfg = configuration.transport();
      if (channel == null) {
         buildChannel();
         String transportNodeName = transportCfg.nodeName();
         if (transportNodeName != null && transportNodeName.length() > 0) {
            long range = Short.MAX_VALUE * 2;
            long randomInRange = (long) ((Math.random() * range) % range) + 1;
            transportNodeName = transportNodeName + "-" + randomInRange;
            channel.setName(transportNodeName);
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.