Class ContainerHandler
java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.container.ContainerHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> void
persistContainer
(ContainerValueDescriptor<T> descriptor) Creates a new container and fills it with the specified values.readContainer
(ContainerDescriptor descriptor) Reads the content of a container corresponding to the specified description.<T> void
updateContainer
(ContainerValueDescriptor<T> descriptor) Updates the content of an existing container corresponding to the specified descriptor.
-
Constructor Details
-
ContainerHandler
-
-
Method Details
-
readContainer
Reads the content of a container corresponding to the specified description.The container values are returned as a list of axioms where the owner of the container points to the individual values.
- Parameters:
descriptor
- Container description- Returns:
- List of axioms representing the container's content
- Throws:
OwlapiDriverException
- If an error accessing the container occurs
-
persistContainer
Creates a new container and fills it with the specified values.- Type Parameters:
T
- Type of container values- Parameters:
descriptor
- Container value descriptor
-
updateContainer
public <T> void updateContainer(ContainerValueDescriptor<T> descriptor) throws OwlapiDriverException Updates the content of an existing container corresponding to the specified descriptor.If the descriptor has no value, the container is removed completely.
- Type Parameters:
T
- Value type- Parameters:
descriptor
- Descriptor with new container values- Throws:
OwlapiDriverException
- If an error accessing the container occurs
-