Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.pkg.client
Class DependAction

    java.lang.Object
      com.sun.pkg.client.Action
          com.sun.pkg.client.DependAction

All Implemented Interfaces:
  java.lang.Comparable<Action>

    public final class DependAction

extends Action

A `DependAction` is an action that represents a dependency from one package to another.

The fmri attribute is expected to be the pkg FMRI that this package depends on. The type attribute is one of

optional - dependency if present activates additional functionality, but is not needed

require - dependency is needed for correct function

transfer - dependency on minimum version of other package that donated components to this package at earlier version. Other package need not be installed, but if it is, it must be at the specified version. Effect is the same as optional, but semantics are different.

incorporate - optional freeze at specified version

exclude - package non-functional if dependent package is present (unimplemented)

Author:
  trm

Nested Class Summary
`static class` | `DependAction.Type` Type of dependency.

Method Summary
`Fmri` | `getTargetFmri()` The `Fmri` specified as a dependency.
`DependAction.Type` | `getType()` Gets the type of the dependency.
`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

### getType

    public DependAction.Type getType()

  Gets the type of the dependency. TODO: can this ever be null? I don't think so, but check and document.

### getTargetFmri

    public Fmri getTargetFmri()

  The `Fmri` specified as a dependency.

  Returns:
    never null.

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD