/** * @see org.overlord.sramp.atom.archive.jar.client.jar.ArtifactFilter#accepts(org.overlord.sramp.atom.archive.jar.client.jar.CandidateArtifact) */ @Override public boolean accepts(CandidateArtifact artifact) { String name = artifact.getName(); if (getExclusions().contains(name)) { return false; } String ext = null; if (name.contains(".")) { //$NON-NLS-1$ ext = name.substring(name.lastIndexOf('.') + 1); } if (ext != null) { return getValidExtensions().contains(ext); } else { return false; } }