org.openrdf.repository.object.compiler.model
Class RDFProperty
java.lang.Object
org.openrdf.repository.object.compiler.model.RDFEntity
org.openrdf.repository.object.compiler.model.RDFProperty
public class RDFProperty
- extends RDFEntity
Utility class for working with an rdf:Property in a Model.
- Author:
- James Leigh
| Fields inherited from class org.openrdf.repository.object.compiler.model.RDFEntity |
model, self |
| Methods inherited from class org.openrdf.repository.object.compiler.model.RDFEntity |
equals, getModel, getRDFClass, getRDFClasses, getRDFProperties, getResource, getResource, getString, getStrings, getURI, getValues, hashCode, isA, toString |
RDFProperty
public RDFProperty(Model model,
Resource self)
getRDFMethod
public RDFProperty getRDFMethod(URI pred)
getRDFProperties
public Set<RDFProperty> getRDFProperties(URI pred)
isLocalized
public boolean isLocalized()
isMethodOrTrigger
public boolean isMethodOrTrigger()
isTrigger
public boolean isTrigger()
isClassDomain
public boolean isClassDomain()
isClassRange
public boolean isClassRange()
isReadOnly
public boolean isReadOnly()
precedes
public boolean precedes(RDFProperty p)
msgCompile
public String msgCompile(JavaNameResolver resolver,
Map<String,String> namespaces,
File dir,
List<File> classpath)
throws Exception
- Compiles the method into a collection of classes and resource stored in
the given directory.
- Parameters:
resolver - utility class to look up corresponding Java namesnamespaces - prefix -> namespacedir - target directory of byte-codeclasspath - available class-path to compile with
- Returns:
- the full class name of the created role
- Throws:
Exception
generateAnnotationCode
public File generateAnnotationCode(File dir,
JavaNameResolver resolver)
throws Exception
- Throws:
Exception
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.