Class ContainerValueDescriptor<T>
java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
cz.cvut.kbss.ontodriver.descriptor.ContainerValueDescriptor<T>
- Type Parameters:
T
- Value type
Descriptor for saving values in an RDF container.
-
Nested Class Summary
Nested classes/interfaces inherited from class cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
ContainerDescriptor.Type
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> ContainerValueDescriptor<T>
altValueDescriptor
(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Alt container to the default context.static <T> ContainerValueDescriptor<T>
altValueDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Alt container to the specified context.static <T> ContainerValueDescriptor<T>
bagValueDescriptor
(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Bag container to the default context.static <T> ContainerValueDescriptor<T>
bagValueDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Bag container to the specified context.boolean
int
hashCode()
static <T> ContainerValueDescriptor<T>
seqValueDescriptor
(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Seq container to the default context.static <T> ContainerValueDescriptor<T>
seqValueDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Seq container to the specified context.Methods inherited from class cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
altDescriptor, altDescriptor, bagDescriptor, bagDescriptor, getContext, getOwner, getProperty, getType, seqDescriptor, seqDescriptor
-
Method Details
-
getValues
-
addValue
-
altValueDescriptor
public static <T> ContainerValueDescriptor<T> altValueDescriptor(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Alt container to the default context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the container- Returns:
- Empty container value descriptor
-
altValueDescriptor
public static <T> ContainerValueDescriptor<T> altValueDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Alt container to the specified context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the containercontext
- Context to which the container should be saved- Returns:
- Empty container value descriptor
-
bagValueDescriptor
public static <T> ContainerValueDescriptor<T> bagValueDescriptor(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Bag container to the default context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the container- Returns:
- Empty container value descriptor
-
bagValueDescriptor
public static <T> ContainerValueDescriptor<T> bagValueDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Bag container to the specified context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the containercontext
- Context to which the container should be saved- Returns:
- Empty container value descriptor
-
seqValueDescriptor
public static <T> ContainerValueDescriptor<T> seqValueDescriptor(NamedResource owner, Assertion property) Creates a newContainerValueDescriptor
for saving an rdf:Seq container to the default context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the container- Returns:
- Empty container value descriptor
-
seqValueDescriptor
public static <T> ContainerValueDescriptor<T> seqValueDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerValueDescriptor
for saving an rdf:Seq container to the specified context.- Type Parameters:
T
- Value type- Parameters:
owner
- Container ownerproperty
- Property referencing the containercontext
- Context to which the container should be saved- Returns:
- Empty container value descriptor
-
equals
- Overrides:
equals
in classContainerDescriptor
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContainerDescriptor
-