String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) { if (dd == null) { throw new NullPointerException("dependency descriptor must not be null"); } if (name == null) { throw new NullPointerException("name must not be null"); } if (type == null) { throw new NullPointerException("type must not be null"); } _dd = dd; _id = new ArtifactId(dd.getDependencyId(), name, type, ext); _includes = includes; _url = url; _patternMatcher = matcher; }
String name, String type, String ext, boolean includes, PatternMatcher matcher) { this(dd, name, type, ext, null, includes, matcher); }
    public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd,            String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) {        if (dd == null) {            throw new NullPointerException("dependency descriptor must not be null");        }        if (name == null) {            throw new NullPointerException("name must not be null");        }        if (type == null) {            throw new NullPointerException("type must not be null");        }        _dd = dd;        _id = new ArtifactId(dd.getDependencyId(), name, type, ext);        _includes = includes;        _url = url;        _patternMatcher = matcher;    }