Class TLcdXMLTypedObjectFactoryProvider

java.lang.Object
com.luciad.format.xml.schema.TLcdXMLTypedObjectFactoryProvider
All Implemented Interfaces:
ILcdXMLObjectFactoryProvider

public class TLcdXMLTypedObjectFactoryProvider extends Object implements ILcdXMLObjectFactoryProvider
Deprecated.
Use of the com.format.xml.schema API has been deprecated. Instead, use the com.format.xml.bind.schema API.
Default implementation of ILcdXMLTypedFactoryProvider.

Factories need only be registered for types; the provider will automatically perform mappings from element stacks to types, as well as mappings from types to their supertypes, based on the XML schema information provided by a ILcdXMLSchemaProvider.

  • Constructor Details

    • TLcdXMLTypedObjectFactoryProvider

      public TLcdXMLTypedObjectFactoryProvider(ILcdXMLSchemaProvider aSchemaProvider)
      Deprecated.
      Creates a new, empty type factory provider.
      Parameters:
      aSchemaProvider - the schema provider to be used by this provider. The schema provider will be used to look up the type and possible supertypes of an element.
      Throws:
      NullPointerException - if the given schema provider is null.
  • Method Details

    • registerFactory

      public void registerFactory(TLcdXMLName aTypeName, ILcdXMLObjectFactory aFactory)
      Deprecated.
      Registers the given factory for the given XML type.
      Parameters:
      aTypeName - The XML type for which the given factory can create object instances.
      aFactory - The factory that can create object instances for the given type.
      Throws:
      NullPointerException - if one of the arguments is null.
    • registerFactory

      public void registerFactory(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLObjectFactory aFactory)
      Deprecated.
      Registers the given factory for the XML type, identified by the element name stack that is contained in the given XML type.
      Parameters:
      aXMLTypeName - The XML type name from which the specified element name stack is part of.
      aElementNameStack - The element name stack, identifying the XML type within the provided XML type.
      aFactory - A factory to register the specified type.
      Throws:
      NullPointerException - if none of the arguments is null.
    • getFactoryForElement

      public ILcdXMLObjectFactory getFactoryForElement(ILcdXMLNameStack aElementStack)
      Deprecated.
      Description copied from interface: ILcdXMLObjectFactoryProvider
      Returns an object factory for the given XML element name stack. If no factory is available, the provider should return null, not the default factory!
      Specified by:
      getFactoryForElement in interface ILcdXMLObjectFactoryProvider
      Parameters:
      aElementStack - the element name stack for which an object factory is to be returned.
      Returns:
      the object factory for the given name stack.