This commit is contained in:
parent
e21bd9e170
commit
26c7e020e2
2 changed files with 88 additions and 8 deletions
|
@ -15,19 +15,59 @@ public interface ModelChange {
|
|||
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();
|
||||
/**
|
||||
* 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();
|
||||
|
||||
/**
|
||||
* Setter for the URI of the graph to which to apply the change
|
||||
*
|
||||
* @param String - the graph URI
|
||||
*/
|
||||
public void setGraphURI(String graphURI);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue