Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2009 Future Invent Informationsmanagement GmbH. All rights reserved. <http://www.fuin.org/> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library. If not, see <http://www.gnu.org/licenses/>.
package org.fuin.units4j.dependency;

Allowed dependency.
public final class DependsOn extends Dependency {

    
Constructor with name. Sub package dependencies are included.

Parameters:
packageName Full qualified name of the package - Cannot be null.
    public DependsOn(final String packageName) {
        super(packageName);
    }

    
Constructor with name.

Parameters:
packageName Full qualified name of the package - Cannot be null.
includeSubPackages If sub package dependencies are included true else false.
    public DependsOn(final String packageNamefinal boolean includeSubPackages) {
        super(packageNameincludeSubPackages);
    }

    
    @Override
    public final String toString() {
        return getPackageName();
    }

    
    public final String toDebugString() {
        final StringBuffer sb = new StringBuffer();
        sb.append("packageName=" + getPackageName() + ", ");
        sb.append("includeSubPackages=" + isIncludeSubPackages() + ", ");
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X