public class MemValueFactory extends AbstractValueFactory
| Constructor and Description |
|---|
MemValueFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
BNode |
createBNode(String nodeID) |
protected Literal |
createFPLiteral(Number n,
IRI datatype) |
protected Literal |
createIntegerLiteral(Number n,
IRI datatype) |
IRI |
createIRI(String uri) |
IRI |
createIRI(String namespace,
String localName) |
Literal |
createLiteral(boolean value) |
Literal |
createLiteral(String value) |
Literal |
createLiteral(String value,
IRI datatype) |
Literal |
createLiteral(String value,
String language) |
Literal |
createLiteral(XMLGregorianCalendar calendar) |
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.
|
MemIRI |
getMemURI(IRI uri)
See getMemValue() for description.
|
Set<MemIRI> |
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. |
MemIRI |
getOrCreateMemURI(IRI 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, createLiteral, createLiteral, createNumericLiteral, createStatement, createStatement, initBNodeParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateLiteral, createStatement, createStatement, createURI, createURIpublic 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<MemIRI> 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 MemIRI getOrCreateMemURI(IRI uri)
getOrCreateMemValue(Value) for description.public MemBNode getOrCreateMemBNode(BNode bnode)
getOrCreateMemValue(Value) for description.public MemLiteral getOrCreateMemLiteral(Literal literal)
getOrCreateMemValue(Value) for description.public IRI createIRI(String uri)
createIRI in interface ValueFactorycreateIRI in class AbstractValueFactorypublic IRI createIRI(String namespace, String localName)
createIRI in interface ValueFactorycreateIRI in class AbstractValueFactorypublic BNode createBNode(String nodeID)
createBNode in interface ValueFactorycreateBNode in class AbstractValueFactorypublic Literal createLiteral(String value)
createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactorypublic Literal createLiteral(String value, String language)
createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactorypublic Literal createLiteral(String value, IRI datatype)
createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactorypublic Literal createLiteral(boolean value)
createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactoryprotected Literal createIntegerLiteral(Number n, IRI datatype)
createIntegerLiteral in class AbstractValueFactoryprotected Literal createFPLiteral(Number n, IRI datatype)
createFPLiteral in class AbstractValueFactorypublic Literal createLiteral(XMLGregorianCalendar calendar)
createLiteral in interface ValueFactorycreateLiteral in class AbstractValueFactoryCopyright © 2015-2017 Eclipse Foundation. All Rights Reserved.