org.xnap.pkg
Class AbstractDependencyNode
java.lang.Object
org.xnap.pkg.AbstractDependencyNode
- All Implemented Interfaces:
- DependencyNode
- Direct Known Subclasses:
- AndDependencyNode, ConflictsDependencyNode, OrDependencyNode, PackageDependencyNode, UnsatisfiedDependencyNode
public abstract class AbstractDependencyNode
- extends java.lang.Object
- implements DependencyNode
Method Summary |
abstract void |
checkDepends(boolean requireInstalled)
|
java.lang.Object |
getID()
|
boolean |
isRequired()
|
void |
require(boolean requireInstalled)
Marks the node as required. |
void |
setRequired(boolean required)
Marks the node as required. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractDependencyNode
public AbstractDependencyNode(java.lang.Object id)
getID
public java.lang.Object getID()
- Specified by:
getID
in interface DependencyNode
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interface DependencyNode
require
public void require(boolean requireInstalled)
throws UnsatisfiedDependenciesException
- Description copied from interface:
DependencyNode
- Marks the node as required.
- Specified by:
require
in interface DependencyNode
- Throws:
UnsatisfiedDependenciesException
checkDepends
public abstract void checkDepends(boolean requireInstalled)
throws UnsatisfiedDependenciesException
- Throws:
UnsatisfiedDependenciesException
setRequired
public void setRequired(boolean required)
- Description copied from interface:
DependencyNode
- Marks the node as required. Does not check the dependencies.
- Specified by:
setRequired
in interface DependencyNode
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2005 XNap Team. All Rights Reserved.