restx.build.ModuleFragment Maven / Gradle / Ivy
package restx.build;
import java.io.IOException;
import java.io.Writer;
import java.util.regex.Pattern;
/**
* User: xavierhanin
* Date: 4/15/13
* Time: 12:32 PM
*/
public class ModuleFragment {
private final String fragment;
public ModuleFragment(String fragment) {
this.fragment = fragment;
}
public void write(ModuleDescriptor md, Writer w) throws IOException {
w.write(fragment);
}
public boolean matches(Pattern pattern) {
return pattern.matcher(fragment).matches();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy