blob: 76122e7f3c822a5fc290030d6c73ece6114cf5eb [file] [log] [blame]
package org.apache.rya.indexing;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.util.Set;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Resource;
public class StatementConstraints {
private Resource context = null;
private Resource subject = null;
private Set<IRI> predicates = null;
public StatementConstraints setContext(Resource context) {
this.context = context;
return this;
}
public StatementConstraints setPredicates(Set<IRI> predicates) {
this.predicates = predicates;
return this;
}
public StatementConstraints setSubject(Resource subject) {
this.subject = subject;
return this;
}
public Resource getContext() {
return context;
}
public Set<IRI> getPredicates() {
return predicates;
}
public Resource getSubject() {
return subject;
}
public boolean hasSubject() {
return subject != null;
}
public boolean hasPredicates() {
return predicates != null && !predicates.isEmpty();
}
public boolean hasContext() {
return context != null;
}
}