org.sonatype.gshell.command.resolver
Class NodePath

java.lang.Object
  extended by org.sonatype.gshell.command.resolver.NodePath

public class NodePath
extends Object

Representation of a Node's path.

Since:
2.5
Author:
Jason Dillon

Constructor Summary
NodePath(String path)
           
 
Method Summary
 NodePath child(String name)
           
 String first()
           
 int hashCode()
           
 boolean isAbsolute()
           
 String last()
           
 NodePath normalize()
           
 NodePath parent()
           
 String[] split()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePath

public NodePath(String path)
Method Detail

isAbsolute

public boolean isAbsolute()

first

public String first()

last

public String last()

parent

public NodePath parent()

child

public NodePath child(String name)

normalize

public NodePath normalize()

split

public String[] split()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Sonatype. All Rights Reserved.