com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIterNodeList Java Examples

The following examples show how to use com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIterNodeList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SAXImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #2
Source File: SAXImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #3
Source File: SAXImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #4
Source File: SAXImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #5
Source File: SAXImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #6
Source File: SAXImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #7
Source File: SAXImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #8
Source File: SAXImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #9
Source File: SAXImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #10
Source File: SAXImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #11
Source File: SAXImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node in the tree
 */
public NodeList makeNodeList(int index) {
    if (_nodeLists == null) {
        _nodeLists = new NodeList[_namesSize];
    }

    int nodeID = makeNodeIdentity(index);
    if (nodeID < 0) {
        return null;
    }
    else if (nodeID < _nodeLists.length) {
        return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID]
               : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
                                             new SingletonIterator(index)));
}
    else {
        return new DTMAxisIterNodeList(this, new SingletonIterator(index));
    }
}
 
Example #12
Source File: MultiDOM.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #13
Source File: MultiDOM.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #14
Source File: MultiDOM.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #15
Source File: MultiDOM.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #16
Source File: MultiDOM.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #17
Source File: MultiDOM.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #18
Source File: MultiDOM.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #19
Source File: MultiDOM.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public NodeList makeNodeList(DTMAxisIterator iter) {
    int index = iter.next();
    if (index == DTM.NULL) {
        return new DTMAxisIterNodeList(null, null);
    }
    iter.reset();
    return _adapters[getDTMId(index)].makeNodeList(iter);
}
 
Example #20
Source File: SAXImpl.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #21
Source File: SAXImpl.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #22
Source File: SAXImpl.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #23
Source File: SAXImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #24
Source File: SAXImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #25
Source File: SAXImpl.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #26
Source File: SAXImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #27
Source File: SAXImpl.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #28
Source File: SAXImpl.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #29
Source File: SAXImpl.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}
 
Example #30
Source File: SAXImpl.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Create an org.w3c.dom.NodeList from a node iterator
 * The iterator most be started before this method is called
 */
public NodeList makeNodeList(DTMAxisIterator iter) {
    return new DTMAxisIterNodeList(this, iter);
}