|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.object.ObjectFactory
public class ObjectFactory
Converts between Value and objects without accessing the repository.
| Constructor Summary | |
|---|---|
ObjectFactory(RoleMapper mapper,
PropertyMapper properties,
LiteralManager lm,
ClassResolver resolver,
ClassLoader cl)
|
|
| Method Summary | ||
|---|---|---|
Literal |
createLiteral(Object object)
Converts an object back into a literal. |
|
RDFObject |
createObject()
Creates an anonymous object with no rdf:type. |
|
Object |
createObject(Literal literal)
Converts a literal into an object. |
|
RDFObject |
createObject(Resource resource)
Creates an object with no rdf:type. |
|
|
createObject(Resource resource,
Class<T> type)
Creates an object with an assumed rdf:type. |
|
RDFObject |
createObject(Resource resource,
Collection<URI> types)
Creates an object with assumed rdf:types. |
|
RDFObject |
createObject(Resource resource,
URI... types)
Creates an object with assumed rdf:types. |
|
RDFObject |
createObject(String uri)
Creates an object with no rdf:type. |
|
protected String |
createObjectQuery(Class<?> concept,
int bindings)
|
|
Value |
createValue(Object object)
Converts an object into a literal or resource. |
|
ClassLoader |
getClassLoader()
|
|
protected URI |
getType(Class<?> concept)
|
|
protected boolean |
isDatatype(Class<?> type)
|
|
boolean |
isNamedConcept(Class<?> type)
|
|
protected void |
setObjectConnection(ObjectConnection connection)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectFactory(RoleMapper mapper,
PropertyMapper properties,
LiteralManager lm,
ClassResolver resolver,
ClassLoader cl)
| Method Detail |
|---|
public ClassLoader getClassLoader()
public Object createObject(Literal literal)
public Literal createLiteral(Object object)
public Value createValue(Object object)
public RDFObject createObject()
public RDFObject createObject(String uri)
public RDFObject createObject(Resource resource)
public <T> T createObject(Resource resource,
Class<T> type)
public RDFObject createObject(Resource resource,
URI... types)
public RDFObject createObject(Resource resource,
Collection<URI> types)
public boolean isNamedConcept(Class<?> type)
true If the given type can be used as a concept
parameter.protected void setObjectConnection(ObjectConnection connection)
protected boolean isDatatype(Class<?> type)
protected URI getType(Class<?> concept)
protected String createObjectQuery(Class<?> concept,
int bindings)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||