diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/ModelChange.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/ModelChange.java index 10dd8934a..a5f8b5bfb 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/ModelChange.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/ModelChange.java @@ -14,20 +14,60 @@ public interface ModelChange { public enum Operation { ADD, REMOVE } - + + /** + * Getter for the serialized model + * + * @return InputStream - a model (collection of RDF triples), serialized + */ public InputStream getSerializedModel(); + /** + * Setter for the serialized model + * + * @param InputStream - a model (collection of RDF triples), serialized + */ public void setSerializedModel(InputStream serializedModel); + /** + * Getter for the serialization format of the model + * + * @return RDFService.ModelSerializationFormat - the serialization format of the model + */ public RDFService.ModelSerializationFormat getSerializationFormat(); + /** + * Setter for the serialization format of the model + * + * @param RDFService.ModelSerializationFormat - the serialization format of the model + */ public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat); - public Operation getOperation(); - - public void setOperation(Operation operation); - + /** + * Getter for the operation type + * + * @return ModelChange.Operation - the operation type + */ + public ModelChange.Operation getOperation(); + + /** + * Setter for the operation type + * + * @param ModelChange.Operation - the operation type + */ + public void setOperation(ModelChange.Operation operation); + + /** + * Getter for the URI of the graph to which to apply the change + * + * @return String - the graph URI + */ public String getGraphURI(); - + + /** + * Setter for the URI of the graph to which to apply the change + * + * @param String - the graph URI + */ public void setGraphURI(String graphURI); } diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/ModelChangeImpl.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/ModelChangeImpl.java index 717237f64..64706dbe4 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/ModelChangeImpl.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/ModelChangeImpl.java @@ -31,41 +31,81 @@ public class ModelChangeImpl implements ModelChange { this.graphURI = graphURI; } + /** + * Getter for the serialized model + * + * @return InputStream - a model (collection of RDF triples), serialized + */ @Override public InputStream getSerializedModel() { return serializedModel; } + /** + * Setter for the serialized model + * + * @param InputStream - a model (collection of RDF triples), serialized + */ @Override public void setSerializedModel(InputStream serializedModel) { this.serializedModel = serializedModel; } + /** + * Getter for the serialization format of the model + * + * @return RDFService.ModelSerializationFormat - the serialization format of the model + */ @Override public RDFService.ModelSerializationFormat getSerializationFormat() { return serializationFormat; } + /** + * Setter for the serialization format of the model + * + * @param RDFService.ModelSerializationFormat - the serialization format of the model + */ @Override public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat) { this.serializationFormat = serializationFormat; } + /** + * Getter for the operation type + * + * @return ModelChange.Operation - the operation type + */ @Override public Operation getOperation() { return operation; } + /** + * Setter for the operation type + * + * @param ModelChange.Operation - the operation type + */ @Override public void setOperation(Operation operation) { this.operation = operation; } - + + /** + * Getter for the URI of the graph to which to apply the change + * + * @return String - the graph URI + */ @Override public String getGraphURI() { return graphURI; } - + + /** + * Setter for the URI of the graph to which to apply the change + * + * @param String - the graph URI + */ @Override public void setGraphURI(String graphURI) { this.graphURI = graphURI;