org.openrdf.repository.object.compiler.model
Class RDFProperty

java.lang.Object
  extended by org.openrdf.repository.object.compiler.model.RDFEntity
      extended by 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

Field Summary
 
Fields inherited from class org.openrdf.repository.object.compiler.model.RDFEntity
model, self
 
Constructor Summary
RDFProperty(Model model, Resource self)
           
 
Method Summary
 File generateAnnotationCode(File dir, JavaNameResolver resolver)
           
 RDFProperty getRDFMethod(URI pred)
           
 Set<RDFProperty> getRDFProperties(URI pred)
           
 boolean isClassDomain()
           
 boolean isClassRange()
           
 boolean isLocalized()
           
 boolean isMethodOrTrigger()
           
 boolean isReadOnly()
           
 boolean isTrigger()
           
 String msgCompile(JavaNameResolver resolver, Map<String,String> namespaces, File dir, List<File> classpath)
          Compiles the method into a collection of classes and resource stored in the given directory.
 boolean precedes(RDFProperty p)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFProperty

public RDFProperty(Model model,
                   Resource self)
Method Detail

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 names
namespaces - prefix -> namespace
dir - target directory of byte-code
classpath - 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.