net.sourceforge.jfacets.impl
Class FacetDescriptorManager

java.lang.Object
  extended by net.sourceforge.jfacets.impl.FacetDescriptorManager
All Implemented Interfaces:
IFacetDescriptorManager

public class FacetDescriptorManager
extends Object
implements IFacetDescriptorManager

The FacetDescriptorManager : handles loading of descriptors from an XML resource, and provides access to them.

Author:
Remi VANKEISBELCK - rvkb.com (remi 'at' rvkb.com)

Constructor Summary
FacetDescriptorManager(String facetsFilePath)
          Creates the manager and loads descriptors.
 
Method Summary
 FacetDescriptor getDescriptor(String name, String profileId, Class targetObjectType)
          returns the descriptor for passed parameters, null if not found.
 FacetDescriptor[] getDescriptors()
          returns an array of all loaded descriptors
protected  int loadDescriptors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacetDescriptorManager

public FacetDescriptorManager(String facetsFilePath)
                       throws IOException,
                              ParserConfigurationException,
                              SAXException,
                              FactoryConfigurationError
Creates the manager and loads descriptors.

Parameters:
facetsFilePath - The path of the facets XML descriptor to be used (CLASSPATH resource)
Throws:
IOException
ParserConfigurationException
SAXException
FactoryConfigurationError
Method Detail

loadDescriptors

protected int loadDescriptors()
                       throws IOException,
                              ParserConfigurationException,
                              SAXException,
                              FactoryConfigurationError
Throws:
IOException
ParserConfigurationException
SAXException
FactoryConfigurationError

getDescriptors

public FacetDescriptor[] getDescriptors()
returns an array of all loaded descriptors

Specified by:
getDescriptors in interface IFacetDescriptorManager

getDescriptor

public FacetDescriptor getDescriptor(String name,
                                     String profileId,
                                     Class targetObjectType)
returns the descriptor for passed parameters, null if not found. strict match : does not handle inheritance

Specified by:
getDescriptor in interface IFacetDescriptorManager


Copyright © 2012. All Rights Reserved.