edu.stanford.protege.webprotege.match.IriLexicalValueMatcher Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.match;
import org.semanticweb.owlapi.model.IRI;
import javax.annotation.Nonnull;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 7 Jun 2018
*/
public class IriLexicalValueMatcher implements Matcher {
@Nonnull
private final Matcher iriLexicalValueMatcher;
public IriLexicalValueMatcher(@Nonnull Matcher iriLexicalValueMatcher) {
this.iriLexicalValueMatcher = checkNotNull(iriLexicalValueMatcher);
}
@Override
public boolean matches(@Nonnull IRI value) {
return iriLexicalValueMatcher.matches(value.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy