001: /*
002: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
003: *
004: * Licensed under the Aduna BSD-style license.
005: */
006: package org.openrdf.http.webclient;
007:
008: import org.openrdf.model.Resource;
009: import org.openrdf.model.URI;
010: import org.openrdf.model.Value;
011:
012: /**
013: * @author Herko ter Horst
014: */
015: public class StatementSpecification {
016:
017: private Resource subject = null;
018:
019: private URI predicate = null;
020:
021: private Value object = null;
022:
023: boolean includeInferred = false;
024:
025: private Resource[] contexts = new Resource[0];
026:
027: public Resource[] getContexts() {
028: return contexts;
029: }
030:
031: /**
032: * @return Returns the predicate.
033: */
034: public URI getPredicate() {
035: return predicate;
036: }
037:
038: /**
039: * @param predicate
040: * The predicate to set.
041: */
042: public void setPredicate(URI predicate) {
043: this .predicate = predicate;
044: }
045:
046: /**
047: * @return Returns the subject.
048: */
049: public Resource getSubject() {
050: return subject;
051: }
052:
053: /**
054: * @param subject
055: * The subject to set.
056: */
057: public void setSubject(Resource subject) {
058: this .subject = subject;
059: }
060:
061: /**
062: * @return Returns the value.
063: */
064: public Value getObject() {
065: return object;
066: }
067:
068: /**
069: * @param value
070: * The value to set.
071: */
072: public void setObject(Value object) {
073: this .object = object;
074: }
075:
076: /**
077: * @param contexts
078: * The contexts to set.
079: */
080: public void setContexts(Resource[] contexts) {
081: if (contexts == null) {
082: throw new IllegalArgumentException(
083: "contexts must not be null");
084: }
085:
086: this .contexts = contexts;
087: }
088:
089: /**
090: * @return Returns the includeInferred.
091: */
092: public boolean isIncludeInferred() {
093: return includeInferred;
094: }
095:
096: /**
097: * @param includeInferred The includeInferred to set.
098: */
099: public void setIncludeInferred(boolean includeInferred) {
100: this.includeInferred = includeInferred;
101: }
102: }
|