com.android.repository.api
Class Dependency

java.lang.Object
  extended by com.android.repository.api.Dependency
Direct Known Subclasses:
DependencyType, FakeDependency

public abstract class Dependency
extends java.lang.Object

A dependency of one package on another. Concrete instances should be created by CommonFactory.


Constructor Summary
Dependency()
           
 
Method Summary
 RevisionType getMinRevision()
           
abstract  java.lang.String getPath()
           
 void setMinRevision(RevisionType revision)
           
 void setPath(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency()
Method Detail

getMinRevision

@Nullable
public RevisionType getMinRevision()
Returns:
The minimum revision of the other package required.

setMinRevision

public void setMinRevision(@Nullable
                           RevisionType revision)
Parameters:
revision - The minimum revision of the other package required.

getPath

@NonNull
public abstract java.lang.String getPath()
Returns:
The path uniquely identifying the other package.

setPath

public void setPath(@NonNull
                    java.lang.String id)
Parameters:
id - The path uniquely identifying the other package.