/** * The query will match descriptors with the given <code>id</code>, <code>versionRange</code> * and <code>format</code> * @param id the descriptor id to match. Can not be <code>null</code> * @param versionRange the descriptor version range to match or <code>null</code> to match * any version range * @param format the descriptor {@link IArtifactDescriptor#FORMAT} value to match, or <code>null</code> to * match any descriptor format */ public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format) { super(IArtifactDescriptor.class, createExpression(id, versionRange, format, null)); }
/** * The query will match descriptors with the given <code>id</code>, <code>versionRange</code> * and <code>format</code> * @param id the descriptor id to match. Can not be <code>null</code> * @param versionRange the descriptor version range to match or <code>null</code> to match * any version range * @param format the descriptor {@link IArtifactDescriptor#FORMAT} value to match, or <code>null</code> to * match any descriptor format */ public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format) { super(IArtifactDescriptor.class, createExpression(id, versionRange, format, null)); }
/** * The query will match descriptors with the given <code>id</code>, <code>versionRange</code>, * <code>format</code>, and <code>properties</code>. * @param id the descriptor id to match. Can not be <code>null</code> * @param versionRange the descriptor version range to match or <code>null</code> to match * any version range * @param format the descriptor {@link IArtifactDescriptor#FORMAT} value to match, or <code>null</code> to * match any descriptor format * @param properties The properties to query for */ public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format, Map<String, String> properties) { super(IArtifactDescriptor.class, createExpression(id, versionRange, format, properties)); } }
/** * The query will match descriptors with the given <code>id</code>, <code>versionRange</code>, * <code>format</code>, and <code>properties</code>. * @param id the descriptor id to match. Can not be <code>null</code> * @param versionRange the descriptor version range to match or <code>null</code> to match * any version range * @param format the descriptor {@link IArtifactDescriptor#FORMAT} value to match, or <code>null</code> to * match any descriptor format * @param properties The properties to query for */ public ArtifactDescriptorQuery(String id, VersionRange versionRange, String format, Map<String, String> properties) { super(IArtifactDescriptor.class, createExpression(id, versionRange, format, properties)); } }
/** * The query will match descriptors whose <code>id</code> and <code>versionRange</code> * match the supplied key * @param key the artifact key to match. Cannot be <code>null</code>. */ public ArtifactDescriptorQuery(IArtifactKey key) { super(IArtifactDescriptor.class, createExpression(key.getId(), new VersionRange(key.getVersion(), true, key.getVersion(), true), null, null)); }
/** * The query will match descriptors whose <code>id</code> and <code>versionRange</code> * match the supplied key * @param key the artifact key to match. Cannot be <code>null</code>. */ public ArtifactDescriptorQuery(IArtifactKey key) { super(IArtifactDescriptor.class, createExpression(key.getId(), new VersionRange(key.getVersion(), true, key.getVersion(), true), null, null)); }