public class PropertyConverter extends com.google.common.base.Converter<javax.jcr.Property,com.hp.hpl.jena.rdf.model.Property>
| Constructor and Description |
|---|
PropertyConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jcr.Property |
doBackward(com.hp.hpl.jena.rdf.model.Property property) |
protected com.hp.hpl.jena.rdf.model.Property |
doForward(javax.jcr.Property property) |
static String |
getPropertyNameFromPredicate(org.modeshape.jcr.api.NamespaceRegistry namespaceRegistry,
com.hp.hpl.jena.rdf.model.Resource predicate,
Map<String,String> namespaceMapping)
Get the JCR property name for an RDF predicate
|
static String |
getPropertyNameFromPredicate(javax.jcr.Node node,
com.hp.hpl.jena.rdf.model.Resource predicate,
Map<String,String> namespaceMapping)
Given an RDF predicate value (namespace URI + local name), figure out
what JCR property to use
|
public PropertyConverter()
protected com.hp.hpl.jena.rdf.model.Property doForward(javax.jcr.Property property)
doForward in class com.google.common.base.Converter<javax.jcr.Property,com.hp.hpl.jena.rdf.model.Property>protected javax.jcr.Property doBackward(com.hp.hpl.jena.rdf.model.Property property)
doBackward in class com.google.common.base.Converter<javax.jcr.Property,com.hp.hpl.jena.rdf.model.Property>public static String getPropertyNameFromPredicate(javax.jcr.Node node, com.hp.hpl.jena.rdf.model.Resource predicate, Map<String,String> namespaceMapping) throws javax.jcr.RepositoryException
node - the JCR node we want a property forpredicate - the predicate to map to a property namenamespaceMapping - prefix to uri namespace mappingjavax.jcr.RepositoryExceptionpublic static String getPropertyNameFromPredicate(org.modeshape.jcr.api.NamespaceRegistry namespaceRegistry, com.hp.hpl.jena.rdf.model.Resource predicate, Map<String,String> namespaceMapping) throws javax.jcr.RepositoryException
namespaceRegistry - predicate - the predicate to map to a property namenamespaceMapping - javax.jcr.RepositoryExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.