public class MemValueFactory extends ValueFactoryBase
| Constructor and Description |
|---|
MemValueFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
BNode |
createBNode(String nodeID) |
protected Literal |
createFPLiteral(Number n,
URI datatype) |
protected Literal |
createIntegerLiteral(Number n,
URI datatype) |
Literal |
createLiteral(boolean value) |
Literal |
createLiteral(String value) |
Literal |
createLiteral(String value,
String language) |
Literal |
createLiteral(String value,
URI datatype) |
Literal |
createLiteral(XMLGregorianCalendar calendar) |
Statement |
createStatement(Resource subject,
URI predicate,
Value object) |
Statement |
createStatement(Resource subject,
URI predicate,
Value object,
Resource context) |
URI |
createURI(String uri) |
URI |
createURI(String namespace,
String localName) |
MemBNode |
getMemBNode(BNode bnode)
See getMemValue() for description.
|
Set<MemBNode> |
getMemBNodes()
Gets all bnodes that are managed by this value factory.
|
MemLiteral |
getMemLiteral(Literal literal)
See getMemValue() for description.
|
Set<MemLiteral> |
getMemLiterals()
Gets all literals that are managed by this value factory.
|
MemResource |
getMemResource(Resource resource)
See getMemValue() for description.
|
MemURI |
getMemURI(URI uri)
See getMemValue() for description.
|
Set<MemURI> |
getMemURIs()
Gets all URIs that are managed by this value factory.
|
MemValue |
getMemValue(Value value)
Returns a previously created MemValue that is equal to the supplied value,
or null if the supplied value is a new value or is equal to
null.
|
MemBNode |
getOrCreateMemBNode(BNode bnode)
See
getOrCreateMemValue(Value) for description. |
MemLiteral |
getOrCreateMemLiteral(Literal literal)
See
getOrCreateMemValue(Value) for description. |
MemResource |
getOrCreateMemResource(Resource resource)
See
getOrCreateMemValue(Value) for description. |
MemURI |
getOrCreateMemURI(URI uri)
See
getOrCreateMemValue(Value) for description. |
MemValue |
getOrCreateMemValue(Value value)
Gets or creates a MemValue for the supplied Value.
|
createBNode, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral, initBNodeParamspublic void clear()
public MemValue getMemValue(Value value)
value - The MemValue equivalent of the supplied value, or null.public MemResource getMemResource(Resource resource)
public MemLiteral getMemLiteral(Literal literal)
public Set<MemURI> getMemURIs()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public Set<MemBNode> getMemBNodes()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public Set<MemLiteral> getMemLiterals()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public MemValue getOrCreateMemValue(Value value)
value - A Resource or Literal.public MemResource getOrCreateMemResource(Resource resource)
getOrCreateMemValue(Value) for description.public MemURI getOrCreateMemURI(URI uri)
getOrCreateMemValue(Value) for description.public MemBNode getOrCreateMemBNode(BNode bnode)
getOrCreateMemValue(Value) for description.public MemLiteral getOrCreateMemLiteral(Literal literal)
getOrCreateMemValue(Value) for description.public Literal createLiteral(boolean value)
createLiteral in interface ValueFactorycreateLiteral in class ValueFactoryBaseprotected Literal createIntegerLiteral(Number n, URI datatype)
createIntegerLiteral in class ValueFactoryBaseprotected Literal createFPLiteral(Number n, URI datatype)
createFPLiteral in class ValueFactoryBasepublic Literal createLiteral(XMLGregorianCalendar calendar)
createLiteral in interface ValueFactorycreateLiteral in class ValueFactoryBaseCopyright © 2001-2014 Aduna. All Rights Reserved.