Class RuntimeDescriptorFactory


  • public class RuntimeDescriptorFactory
    extends Object
    This class is responsible for instantiating runtime Descriptor classes
    Version:
    Author:
    Jerome Dochez
    • Constructor Detail

      • RuntimeDescriptorFactory

        protected RuntimeDescriptorFactory()
        This is a factory object no need for DescriptorFactory instance
    • Method Detail

      • register

        public static void register​(XMLElement xmlPath,
                                    Class clazz)
        register a new descriptor class handling a particular XPATH in the DTD.
        Parameters:
        xmlPath - absolute or relative XPath
        clazz - the descriptor class to use
      • getDescriptorClass

        public static Class getDescriptorClass​(String xmlPath)
        Returns:
        the descriptor tag for a particular XPath
      • getDescriptor

        public static Object getDescriptor​(String xmlPath)
        Returns:
        a new instance of a registered descriptor class for the supplied XPath