
package org.apache.commons.net.ssh.sftp;

class PathComponents
{
    private final String parent;
    private final String name;
    private final String path;
    
    public PathComponents(String parent, String name)
    {
        this.parent = parent;
        this.name = name;
        this.path = PathUtil.adjustForParent(parent, name);
    }
    
    public String getParent()
    {
        return parent;
    }
    
    public String getName()
    {
        return name;
    }
    
    public String getPath()
    {
        return path;
    }
    
    @Override
    public String toString()
    {
        return "[parent=" + parent + "; name=" + name + "; path=" + path + "]";
    }
    
}