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 java.lang.String |
getPropertyNameFromPredicate(org.modeshape.jcr.api.NamespaceRegistry namespaceRegistry,
com.hp.hpl.jena.rdf.model.Resource predicate,
java.util.Map<java.lang.String,java.lang.String> namespaceMapping)
Get the JCR property name for an RDF predicate
|
static java.lang.String |
getPropertyNameFromPredicate(javax.jcr.Node node,
com.hp.hpl.jena.rdf.model.Resource predicate,
java.util.Map<java.lang.String,java.lang.String> namespaceMapping)
Given an RDF predicate value (namespace URI + local name), figure out
what JCR property to use
|
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 java.lang.String getPropertyNameFromPredicate(javax.jcr.Node node,
com.hp.hpl.jena.rdf.model.Resource predicate,
java.util.Map<java.lang.String,java.lang.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 java.lang.String getPropertyNameFromPredicate(org.modeshape.jcr.api.NamespaceRegistry namespaceRegistry,
com.hp.hpl.jena.rdf.model.Resource predicate,
java.util.Map<java.lang.String,java.lang.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.