com.threerings.jpkg.debian.dependency
Class AbstractDependency

java.lang.Object
  extended by com.threerings.jpkg.debian.dependency.AbstractDependency
All Implemented Interfaces:
ControlFileDependency
Direct Known Subclasses:
PackageConflict, PackageDependency, PackageReplacement

public abstract class AbstractDependency
extends Object
implements ControlFileDependency

Holds a single Debian package dependency, such as a Depends, Conflicts, or Replaces dependency.

See Also:
Debian Policy Manual

Constructor Summary
AbstractDependency(String name)
          Construct a new package dependency.
AbstractDependency(String name, String version, DependencyRelationships relationship)
          Construct a new package dependency.
 
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

AbstractDependency

public AbstractDependency(String name)
Construct a new package dependency. The target package will depend on the supplied package's name, but not a specific version of that package. NOTE: No validation is performed on the package name.


AbstractDependency

public AbstractDependency(String name,
                          String version,
                          DependencyRelationships relationship)
Construct a new package dependency. The target package will depend on the supplied package's name, as well as the supplied relationship to the supplied version,such as equals to version 1.1. NOTE: No validation is performed on the package name or package version.

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.