com.sun.pkg.client
Class LinkAction

java.lang.Object
  extended by com.sun.pkg.client.Action
      extended by com.sun.pkg.client.LinkAction
All Implemented Interfaces:
java.lang.Comparable<Action>

public final class LinkAction
extends Action

A LinkAction is an action that represents a symbolic link within the image.

Author:
trm

Method Summary
 java.lang.String getPath()
          Gets the path of the symlink.
 java.lang.String getTarget()
          Gets the target of the symlink.
 java.lang.String toString()
           
 
Methods inherited from class com.sun.pkg.client.Action
compareTo, equals, getSize, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPath

public java.lang.String getPath()
Gets the path of the symlink.

Returns:
string like "usr/gnu/bin/sh"

getTarget

public java.lang.String getTarget()
Gets the target of the symlink. Like Unix, this can be relative to the location of the symlink.

Returns:
string like "../../bin/bash"

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object