com.threerings.jpkg.debian.dependency
Class DependencyAlternatives

java.lang.Object
  extended by com.threerings.jpkg.debian.dependency.DependencyAlternatives
All Implemented Interfaces:
ControlFileDependency

public class DependencyAlternatives
extends Object
implements ControlFileDependency

Holds a list of Dependency objects representing a list of packages that a given package must depend on only one of.

See Also:
Debian Policy Manual

Constructor Summary
DependencyAlternatives(List<PackageDependency> dependencies)
          Construct a list of alternative dependencies for a package to depend on.
DependencyAlternatives(PackageDependency... dependencies)
          Construct a varargs list of alternative dependencies for a package to depend on.
 
Method Summary
 String asString()
          Returns the string representation of this dependency, formatted for the Debian package control file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyAlternatives

public DependencyAlternatives(PackageDependency... dependencies)
Construct a varargs list of alternative dependencies for a package to depend on.

See Also:
DependencyAlternatives(List)

DependencyAlternatives

public DependencyAlternatives(List<PackageDependency> dependencies)
Construct a list of alternative dependencies for a package to depend on. The list indicates that at least one of the packages must be installed in order for the dependency to be fulfilled.

Method Detail

asString

public String asString()
Description copied from interface: ControlFileDependency
Returns the string representation of this dependency, formatted for the Debian package control file.

Specified by:
asString in interface ControlFileDependency


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.