All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.mgmt.selector.RegexResourceSelector Maven / Gradle / Ivy

Go to download

Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic

There is a newer version: 5.0.0
Show newest version
package com.marklogic.mgmt.selector;

import java.util.regex.Pattern;

public class RegexResourceSelector extends AbstractNameMatchingResourceSelector {

	private Pattern pattern;

	public RegexResourceSelector(String regex) {
		this.pattern = Pattern.compile(regex);
	}

	@Override
	protected boolean nameMatches(String resourceName) {
		return pattern.matcher(resourceName).matches();
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy