org.xnap.pkg
Class AbstractDependencyNode

java.lang.Object
  extended by 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


Constructor Summary
AbstractDependencyNode(java.lang.Object id)
           
 
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
 
Methods inherited from interface org.xnap.pkg.DependencyNode
children
 

Constructor Detail

AbstractDependencyNode

public AbstractDependencyNode(java.lang.Object id)
Method Detail

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.