endrov.hardware
Class EvDevicePath

java.lang.Object
  extended by endrov.hardware.EvDevicePath
All Implemented Interfaces:
java.lang.Comparable<EvDevicePath>

public class EvDevicePath
extends java.lang.Object
implements java.lang.Comparable<EvDevicePath>

Path to hardware. Internally a list of strings, for the user seen as a /-separated string


Field Summary
 java.lang.String[] path
           
 
Constructor Summary
EvDevicePath(java.lang.String dotPath)
          Construct from string
EvDevicePath(java.lang.String[] path)
          Construct from raw path
 
Method Summary
 int compareTo(EvDevicePath o)
          Ordering of paths
 boolean equals(java.lang.Object obj)
           
 EvDevice getDevice()
          Get device for this path
 java.lang.String getLeafName()
           
 int hashCode()
           
static void main(java.lang.String[] arg)
          testing
 java.lang.String toString()
          Make dot-representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

path

public java.lang.String[] path
Constructor Detail

EvDevicePath

public EvDevicePath(java.lang.String dotPath)
Construct from string


EvDevicePath

public EvDevicePath(java.lang.String[] path)
Construct from raw path

Method Detail

toString

public java.lang.String toString()
Make dot-representation

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(EvDevicePath o)
Ordering of paths

Specified by:
compareTo in interface java.lang.Comparable<EvDevicePath>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getDevice

public EvDevice getDevice()
Get device for this path


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

main

public static void main(java.lang.String[] arg)
testing


getLeafName

public java.lang.String getLeafName()