com.threerings.jpkg.debian.dependency
Class DependencyContainer

java.lang.Object
  extended by com.threerings.jpkg.debian.dependency.DependencyContainer
All Implemented Interfaces:
ControlFileData
Direct Known Subclasses:
PackageConflicts, PackageDependencies, PackageReplacements

public abstract class DependencyContainer
extends Object
implements ControlFileData

A generic class which holds ControlFileDependency objects. These can be used to describe various Debian package dependency relationships, such as Depends, Conflicts, and Replaces.

See Also:
Debian Policy Manual

Constructor Summary
DependencyContainer()
           
 
Method Summary
protected  void add(ControlFileDependency dependency)
          Concrete classes may us this to add a generic dependency object to this list of dependencies.
abstract  String getField()
          Returns the field of the Debian control file this data belongs in.
 String getFieldValue()
          Returns the data in this class formatted for the Debian control file.
 int size()
          Returns the number of dependencies defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyContainer

public DependencyContainer()
Method Detail

size

public int size()
Returns the number of dependencies defined.


add

protected void add(ControlFileDependency dependency)
Concrete classes may us this to add a generic dependency object to this list of dependencies.


getField

public abstract String getField()
Description copied from interface: ControlFileData
Returns the field of the Debian control file this data belongs in.

Specified by:
getField in interface ControlFileData

getFieldValue

public String getFieldValue()
Description copied from interface: ControlFileData
Returns the data in this class formatted for the Debian control file.

Specified by:
getFieldValue in interface ControlFileData


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