org.fuin.units4j.dependency
Class Dependency

java.lang.Object
  extended by org.fuin.units4j.dependency.Dependency
All Implemented Interfaces:
org.fuin.utils4j.ToDebugStringCapable
Direct Known Subclasses:
DependsOn, NotDependsOn

public abstract class Dependency
extends java.lang.Object
implements org.fuin.utils4j.ToDebugStringCapable

A dependency to a package.


Constructor Summary
Dependency(java.lang.String packageName)
          Constructor with name and comment.
Dependency(java.lang.String packageName, boolean includeSubPackages)
          Constructor with all possible arguments.
 
Method Summary
 java.lang.String getPackageName()
          Returns the name of the package.
 boolean isIncludeSubPackages()
          Does this include the sub packages?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fuin.utils4j.ToDebugStringCapable
toDebugString
 

Constructor Detail

Dependency

public Dependency(java.lang.String packageName)
Constructor with name and comment.

Parameters:
packageName - Full qualified name of the package - Cannot be null.

Dependency

public Dependency(java.lang.String packageName,
                  boolean includeSubPackages)
Constructor with all possible arguments.

Parameters:
packageName - Full qualified name of the package - Cannot be null.
includeSubPackages - If sub package dependencies are included true else false.
Method Detail

getPackageName

public final java.lang.String getPackageName()
Returns the name of the package.

Returns:
Full qualified name of the package.

isIncludeSubPackages

public final boolean isIncludeSubPackages()
Does this include the sub packages?

Returns:
If sub package dependencies are included true (default) else false.


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.