This commit is contained in:
stellamit 2012-05-22 21:33:31 +00:00
parent e21bd9e170
commit 26c7e020e2
2 changed files with 88 additions and 8 deletions

View file

@ -15,19 +15,59 @@ public interface ModelChange {
ADD, REMOVE ADD, REMOVE
} }
/**
* Getter for the serialized model
*
* @return InputStream - a model (collection of RDF triples), serialized
*/
public InputStream getSerializedModel(); public InputStream getSerializedModel();
/**
* Setter for the serialized model
*
* @param InputStream - a model (collection of RDF triples), serialized
*/
public void setSerializedModel(InputStream serializedModel); 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(); 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 void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat);
public Operation getOperation(); /**
* Getter for the operation type
*
* @return ModelChange.Operation - the operation type
*/
public ModelChange.Operation getOperation();
public void setOperation(Operation operation); /**
* 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(); 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); public void setGraphURI(String graphURI);
} }

View file

@ -31,41 +31,81 @@ public class ModelChangeImpl implements ModelChange {
this.graphURI = graphURI; this.graphURI = graphURI;
} }
/**
* Getter for the serialized model
*
* @return InputStream - a model (collection of RDF triples), serialized
*/
@Override @Override
public InputStream getSerializedModel() { public InputStream getSerializedModel() {
return serializedModel; return serializedModel;
} }
/**
* Setter for the serialized model
*
* @param InputStream - a model (collection of RDF triples), serialized
*/
@Override @Override
public void setSerializedModel(InputStream serializedModel) { public void setSerializedModel(InputStream serializedModel) {
this.serializedModel = serializedModel; this.serializedModel = serializedModel;
} }
/**
* Getter for the serialization format of the model
*
* @return RDFService.ModelSerializationFormat - the serialization format of the model
*/
@Override @Override
public RDFService.ModelSerializationFormat getSerializationFormat() { public RDFService.ModelSerializationFormat getSerializationFormat() {
return serializationFormat; return serializationFormat;
} }
/**
* Setter for the serialization format of the model
*
* @param RDFService.ModelSerializationFormat - the serialization format of the model
*/
@Override @Override
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat) { public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat) {
this.serializationFormat = serializationFormat; this.serializationFormat = serializationFormat;
} }
/**
* Getter for the operation type
*
* @return ModelChange.Operation - the operation type
*/
@Override @Override
public Operation getOperation() { public Operation getOperation() {
return operation; return operation;
} }
/**
* Setter for the operation type
*
* @param ModelChange.Operation - the operation type
*/
@Override @Override
public void setOperation(Operation operation) { public void setOperation(Operation operation) {
this.operation = operation; this.operation = operation;
} }
/**
* Getter for the URI of the graph to which to apply the change
*
* @return String - the graph URI
*/
@Override @Override
public String getGraphURI() { public String getGraphURI() {
return graphURI; return graphURI;
} }
/**
* Setter for the URI of the graph to which to apply the change
*
* @param String - the graph URI
*/
@Override @Override
public void setGraphURI(String graphURI) { public void setGraphURI(String graphURI) {
this.graphURI = graphURI; this.graphURI = graphURI;