congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NodeList.getNode
Code IndexAdd Tabnine to your IDE (free)

How to use
getNode
method
in
org.cybergarage.xml.NodeList

Best Java code snippets using org.cybergarage.xml.NodeList.getNode (Showing top 19 results out of 315)

origin: i2p/i2p.i2p

public Node getNode(String name) 
{
  return nodeList.getNode(name);
}

origin: i2p/i2p.i2p

public Node getNode(int index) {
  return nodeList.getNode(index);
}
origin: i2p/i2p.i2p

public Node getNode(String name) 
{
  if (name == null)
    return null;
  
  int nLists = size(); 
  for (int n=0; n<nLists; n++) {
    Node node = getNode(n);
    String nodeName = node.getName();
    if (name.compareTo(nodeName) == 0)
      return node;
  }
  return null;
}
origin: i2p/i2p.i2p

  public Node getEndsWith(String name) 
  {
    if (name == null)
      return null;

    int nLists = size(); 
    for (int n=0; n<nLists; n++) {
      Node node = getNode(n);
      String nodeName = node.getName();
      if (nodeName == null)
        continue;
      if (nodeName.endsWith(name) == true)
        return node;
    }
    return null;
  }
}
origin: i2p/i2p.i2p

public DeviceList getDeviceList()
{
  DeviceList devList = new DeviceList();
  int nRoots = devNodeList.size();
  for (int n=0; n<nRoots; n++) {
    // AIOOB was thrown from here, maybe would be better to
    // copy the list before traversal?
    Node rootNode;
    try {
      rootNode = devNodeList.getNode(n);
    } catch (ArrayIndexOutOfBoundsException aioob) {
      break;
    }
    Device dev = getDevice(rootNode);
    if (dev == null)
      continue;
    devList.add(dev);
  } 
  return devList;
}
origin: i2p/i2p.i2p

public Device getDevice(String name)
{
  int nRoots = devNodeList.size();
  for (int n=0; n<nRoots; n++) {
    // AIOOB was thrown from here, maybe would be better to
    // copy the list before traversal?
    Node rootNode;
    try {
      rootNode = devNodeList.getNode(n);
    } catch (ArrayIndexOutOfBoundsException aioob) {
      break;
    }
    Device dev = getDevice(rootNode);
    if (dev == null)
      continue;
    if (dev.isDevice(name) == true)
      return dev;
    Device cdev = dev.getDevice(name);
    if (cdev != null)
      return cdev;
  } 
  return null;
}
origin: cybergarage/cybergarage-upnp

public Node getNode(String name) 
{
  return nodeList.getNode(name);
}

origin: geniusgithub/MediaPlayer

public Node getNode(String name) 
{
  return nodeList.getNode(name);
}

origin: cybergarage/cybergarage-upnp

public Node getNode(int index) {
  return nodeList.getNode(index);
}
origin: geniusgithub/MediaPlayer

public Node getNode(int index) {
  return nodeList.getNode(index);
}
origin: stackoverflow.com

 NodeList nodeList = queue.remove();
Node<?> node = nodeList.getNode();
int level = nodeList.getLevel();
// pretty print using the node & level
origin: geniusgithub/MediaPlayer

public synchronized Node getNode(String name)
{
  if (name == null)
    return null;
  
  int nLists = size(); 
  for (int n=0; n<nLists; n++) {
    Node node = getNode(n);
    String nodeName = node.getName();
    if (name.compareTo(nodeName) == 0)
      return node;
  }
  return null;
}
origin: cybergarage/cybergarage-upnp

public synchronized Node getNode(String name)
{
  if (name == null)
    return null;
  
  int nLists = size(); 
  for (int n=0; n<nLists; n++) {
    Node node = getNode(n);
    String nodeName = node.getName();
    if (name.compareTo(nodeName) == 0)
      return node;
  }
  return null;
}
origin: cybergarage/cybergarage-upnp

  public synchronized Node getEndsWith(String name)
  {
    if (name == null)
      return null;

    int nLists = size(); 
    for (int n=0; n<nLists; n++) {
      Node node = getNode(n);
      String nodeName = node.getName();
      if (nodeName == null)
        continue;
      if (nodeName.endsWith(name) == true)
        return node;
    }
    return null;
  }
}
origin: geniusgithub/MediaPlayer

  public synchronized Node getEndsWith(String name)
  {
    if (name == null)
      return null;

    int nLists = size(); 
    for (int n=0; n<nLists; n++) {
      Node node = getNode(n);
      String nodeName = node.getName();
      if (nodeName == null)
        continue;
      if (nodeName.endsWith(name) == true)
        return node;
    }
    return null;
  }
}
origin: cybergarage/cybergarage-upnp

public DeviceList getDeviceList()
{
  devNodeListLock.readLock().lock();
  try {
    DeviceList devList = new DeviceList();
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      devList.add(dev);
    }
    return devList;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: cybergarage/cybergarage-upnp

public Device getDevice(String name)
{
  devNodeListLock.readLock().lock();
  try {
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      if (dev.isDevice(name) == true)
        return dev;
      Device cdev = dev.getDevice(name);
      if (cdev != null)
        return cdev;
    }
    return null;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: geniusgithub/MediaPlayer

public DeviceList getDeviceList()
{
  devNodeListLock.readLock().lock();
  try {
    DeviceList devList = new DeviceList();
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      devList.add(dev);
    }
    return devList;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: geniusgithub/MediaPlayer

public Device getDevice(String name)
{
  devNodeListLock.readLock().lock();
  try {
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      if (dev.isDevice(name) == true)
        return dev;
      Device cdev = dev.getDevice(name);
      if (cdev != null)
        return cdev;
    }
    return null;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
org.cybergarage.xmlNodeListgetNode

Popular methods of NodeList

  • add
  • clear
  • get
  • getEndsWith
  • insertElementAt
  • iterator
  • remove
  • size
  • getLevel

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Path (java.nio.file)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now