Examples of NodeName


Examples of javax.jcr.query.qom.NodeName

        assertEquals("LOCALNAME()", f.nodeLocalName(null).toString());
    }

    @Test
    public void nodeName() throws RepositoryException {
        NodeName n = f.nodeName("selectorName");
        assertEquals("selectorName", n.getSelectorName());
        assertEquals("NAME([selectorName])", n.toString());
        assertEquals("NAME()", f.nodeName(null).toString());
    }
View Full Code Here

Examples of javax.jcr.query.qom.NodeName

            return getSelectorName(lower.getOperand());
        } else if (operand instanceof NodeLocalName) {
            NodeLocalName local = (NodeLocalName) operand;
            return local.getSelectorName();
        } else if (operand instanceof NodeName) {
            NodeName name = (NodeName) operand;
            return name.getSelectorName();
        } else if (operand instanceof PropertyValue) {
            PropertyValue value = (PropertyValue) operand;
            return value.getSelectorName();
        } else if (operand instanceof UpperCase) {
            UpperCase upper = (UpperCase) operand;
View Full Code Here

Examples of net.sf.saxon.om.NodeName

                }
            }

            // Careful, we're messing with the namespace bindings
            // Make sure the nameCode is right...
            NodeName nameCode = new NameOfNode(inode);
            String pfx = nameCode.getPrefix();
            String uri = nameCode.getURI();

            if (from.equals(uri)) {
                if ("".equals(to)) {
                    pfx = "";
                }

                nameCode = new FingerprintedQName(pfx,to,nameCode.getLocalPart());
            }

            matcher.addStartElement(nameCode, inode.getSchemaType(), newNS);
        }

        if (!"elements".equals(applyTo)) {
            XdmSequenceIterator iter = node.axisIterator(Axis.ATTRIBUTE);
            while (iter.hasNext()) {
                XdmNode attr = (XdmNode) iter.next();
                inode = attr.getUnderlyingNode();
                NodeName nameCode = new NameOfNode(inode);
                String pfx = nameCode.getPrefix();
                String uri = nameCode.getURI();

                if (from.equals(uri)) {
                    if ("".equals(pfx)) {
                        pfx = "_1";
                    }
                    nameCode = new FingerprintedQName(pfx,to,nameCode.getLocalPart());
                }
                matcher.addAttribute(nameCode, (SimpleType) inode.getSchemaType(), attr.getStringValue());
            }
        } else {
            matcher.addAttributes(node);
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

   */
  LoggedNetworkTopology(Set<ParsedHost> hosts, String name, int level) {
    if (name == null) {
      this.name = NodeName.ROOT;
    } else {
      this.name = new NodeName(name);
    }
    this.children = null;

    if (level < ParsedHost.numberOfDistances() - 1) {
      HashMap<String, HashSet<ParsedHost>> topologies =
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

  public NodeName getName() {
    return name;
  }

  void setName(String name) {
    this.name = new NodeName(name);
  }
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

      synchronized (layersCache) {
        List<NodeName> found = layersCache.get(layers);
        if (found == null) {
          // make a copy with interned string.
          List<NodeName> clone = new ArrayList<NodeName>(layers.size());
          clone.add(new NodeName(layers.get(0).intern(), null));
          clone.add(new NodeName(null, layers.get(1).intern()));
         
          // making it read-only as we are sharing them.
          List<NodeName> readonlyLayers = Collections.unmodifiableList(clone);
          List<String> readonlyLayersKey = Collections.unmodifiableList(layers);
          layersCache.put(readonlyLayersKey, readonlyLayers);
View Full Code Here

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
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.