org.filteredpush.rdf.processing
Class ModelDescriptorBuilder

java.lang.Object
  extended by org.filteredpush.rdf.processing.ModelDescriptorBuilder

public class ModelDescriptorBuilder
extends java.lang.Object

Builds a ModelDescriptor and all other associated Descriptor objects from the xml config supplied as an argument to the constructor.

Author:
dlowery

Constructor Summary
ModelDescriptorBuilder(java.io.InputStream configXml)
          Loads the xml config into the jaxb binding objects.
 
Method Summary
 ModelDescriptor buildModelDescriptor()
          Adds the namespaces, resources and property descriptors and returns a ModelDescriptor.
 void getPropertyDescriptors(HandlerResource resource, ResourceDescriptor resourceDescriptor)
          Gets all the PropertyDescriptors for a given resource from the xml config and creates the appropriate object (bound, unbound, object).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelDescriptorBuilder

public ModelDescriptorBuilder(java.io.InputStream configXml)
Loads the xml config into the jaxb binding objects.

Parameters:
configXml -
Method Detail

buildModelDescriptor

public ModelDescriptor buildModelDescriptor()
                                     throws java.lang.ClassNotFoundException,
                                            java.lang.InstantiationException,
                                            java.lang.IllegalAccessException
Adds the namespaces, resources and property descriptors and returns a ModelDescriptor.

Returns:
ModelDescriptor
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException

getPropertyDescriptors

public void getPropertyDescriptors(HandlerResource resource,
                                   ResourceDescriptor resourceDescriptor)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Gets all the PropertyDescriptors for a given resource from the xml config and creates the appropriate object (bound, unbound, object).

Parameters:
resource -
resourceDescriptor -
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException