Examples of NodeInfo


Examples of net.sf.saxon.om.NodeInfo

    if (item == null && !emptyOnEmpty) {
      return null;
    }
    XMLType.Type type = Type.CONTENT;
    if (item instanceof NodeInfo) {
      NodeInfo info = (NodeInfo)item;
      switch (info.getNodeKind()) {
        case net.sf.saxon.type.Type.DOCUMENT:
          type = Type.DOCUMENT;
          break;
        case net.sf.saxon.type.Type.ELEMENT:
          type = Type.ELEMENT;
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

    if (PRESERVE_IDENTITIES && this.alreadyConverted == null) {
      this.alreadyConverted = new HashMap();
    }
    Node value = convertNodeInfo(node);
    if (PRESERVE_IDENTITIES && node.getNodeKind() != Type.NAMESPACE) {
      NodeInfo root = node.getRoot();
      if (!root.isSameNodeInfo(node)) {
        if (DEBUG) System.err.println(
            "ROOT converting nodeinfo: " + root.getStringValue() + " : " + root);
        convertNodeInfo(root); // link value together with it's ancestor pointers
      }
    }
    return value;
  }
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

    Document doc = new Document(new Element("fakeRoot"));
    doc.setBaseURI(node.getBaseURI());
   
    boolean hasRootElement = false;
    int i = 0;
    NodeInfo next;
    AxisIterator iter = node.iterateAxis(Axis.CHILD);
    while ((next = (NodeInfo) iter.next()) != null) {
      Node child = convertNodeInfo(next);
      if (child instanceof Element) { // replace fake root with real root
        if (hasRootElement) throw new IllegalAddException(
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

  }
 
  private Element convertElementNodeInfo(NodeInfo node) {
    if (DEBUG) System.err.println("converting element=" + node.getDisplayName());
    Element elem = new Element(node.getDisplayName(), node.getURI());
    NodeInfo next;
   
    // Append attributes
    AxisIterator iter = node.iterateAxis(Axis.ATTRIBUTE);
    ArrayList prefixes = null;
    while ((next = (NodeInfo) iter.next()) != null) {
      elem.addAttribute((Attribute) convertNodeInfo(next));
     
      // keep track of attributes with prefixes, so we can avoid adding costly
      // additional namespaces declarations below. This safes potentially vast
      // amounts of memory due too XOM's expensive NS declaration storage scheme.
      String prefix = next.getPrefix();
      if (prefix.length() != 0) { // e.g. SOAP
         if (prefixes == null) prefixes = new ArrayList(1);
         prefixes.add(prefix);
      }
    }
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

            org.w3c.dom.Document domDoc = null;
            if (mode.equals("dom")) {
              domDoc = domBuilder.parse(file);
            }
           
            NodeInfo saxonDoc = null;
            if (mode.equals("saxon")) {
              saxonDoc = context.buildDocument(new StreamSource(new ByteArrayInputStream(fileData)));
            }
   
            if (mode.startsWith("fi")) {
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

     * are generated by XQuery, there will always be a valueExpression to evaluate
     * the content
     */

    public Item evaluateItem(XPathContext context) throws XPathException {
        NodeInfo node = (NodeInfo)super.evaluateItem(context);
        String prefix = node.getLocalPart();
        String uri = node.getStringValue();
        checkPrefixAndUri(prefix, uri, context);
        return node;
    }
View Full Code Here

Examples of net.sf.saxon.om.NodeInfo

            XPathException e = new XPathException("Cannot call xsl:next-match when context item is not a node");
            e.setXPathContext(context);
            e.setErrorCode("XTDE0565");
            throw e;
        }
        NodeInfo node = (NodeInfo)currentItem;
        Rule rule = controller.getRuleManager().getNextMatchHandler(node, mode, currentRule, context);

    if (rule==null) {             // use the default action for the node
            ApplyTemplates.defaultAction(node, params, tunnels, context, getLocationId());
        } else if (useTailRecursion) {
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.NodeInfo

        kernel.unloadGBean(name);
    }

    protected void setUp() throws Exception {
        InetAddress address = InetAddress.getLocalHost();
        NodeInfo primaryNode = new NodeInfo("Primary", address, 8080);
        NodeInfo secondaryNode = new NodeInfo("Secondary", address, 8082);
       

        // Set-up the first ServerNode.
        kernel1 = new Kernel("test.kernel1", "test");
        kernel1.boot();
View Full Code Here

Examples of org.apache.geronimo.farm.config.NodeInfo

    private void recordInstallMasterConfiguration() throws IOException, InvalidConfigException {
        final Artifact masterId = new Artifact("groupId", "masterId", "2.0", "car");
        nameBuilder.buildMasterConfigurationName(configId);
        modify().returnValue(masterId);
       
        NodeInfo nodeInfo = (NodeInfo) mock(NodeInfo.class);
        nodeInfo.getName();
        final String nodeName = "nodeName";
        modify().multiplicity(expect.from(0)).returnValue(nodeName);
        clusterInfo.getNodeInfos();
        modify().returnValue(Collections.singleton(nodeInfo));
       
View Full Code Here

Examples of org.apache.geronimo.messaging.NodeInfo

    private Object proxy;
    private EndPointProxyFactory factory;
   
    protected void setUp() throws Exception {
        InetAddress address = InetAddress.getLocalHost();
        targets = new NodeInfo[] {new NodeInfo("dummy", address, 8081)};
       
        factory = new EndPointProxyFactoryImpl(new MockNode(), "Factory");
       
        EndPointProxyInfo proxyInfo =
            new EndPointProxyInfo("", new Class[] {MockEndPoint.class},
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.