Class ALcdXMLTypedVisitorBasedElementAdapter

java.lang.Object
com.luciad.format.xml.ALcdXMLVisitorBasedElementAdapter
com.luciad.format.xml.schema.ALcdXMLTypedVisitorBasedElementAdapter
All Implemented Interfaces:
ILcdXMLElementAdapter

public abstract class ALcdXMLTypedVisitorBasedElementAdapter extends ALcdXMLVisitorBasedElementAdapter implements ILcdXMLElementAdapter
Deprecated.
Use of the com.format.xml.schema API has been deprecated. Instead, use the com.format.xml.bind.schema API.
An abstract class implementing ILcdXMLElementAdapter, facilitating the implementation of custom XML adapters and offering support for XML type inheritance, based on schema information.

Typically, when extending this class, the following methods need to be overwritten:

  • when adding attributes:
    • visitTypeAttributes()
  • when adding contents:
    • visitTypeContents()

All getAttribute...(), getContent...() and related methods of the ILcdXMLElementAdapter interface are implemented by this adapter using delegation to the visit...() methods. These methods should normally not be overwritten.

This adapter is considered as the default typed element adapter class to extend from, offering an easy and compact implementation, and excellent serial access performance.

  • Constructor Details

    • ALcdXMLTypedVisitorBasedElementAdapter

      public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLElementNameProvider aElementNameProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName)
      Deprecated.
      Constructs an ALcdXMLTypedVisitorBasedElementAdapter for a global type.
      Parameters:
      aElementAdapterProvider - the element adapter provider to which adapter requests should be forwarded.
      aElementNameProvider - the element name provider to which naming requests should be forwarded.
      aSchemaProvider - the schema provider to which schema requests should be forwarded.
      aTypeName - the XML type name for which this adapter is written.
    • ALcdXMLTypedVisitorBasedElementAdapter

      public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName, TLcdXMLName aElementName)
      Deprecated.
      Constructs an ALcdXMLTypedVisitorBasedElementAdapter for a global type, with a fixed element name.
      Parameters:
      aElementAdapterProvider - the element adapter provider to which adapter requests should be forwarded.
      aSchemaProvider - the schema provider to which schema requests should be forwarded.
      aTypeName - the XML type name for which this adapter is written.
      aElementName - the XML element name to be returned for elements handled by this adapter. No ILcdXMLElementNameProvider will be used for look-up of the name.
    • ALcdXMLTypedVisitorBasedElementAdapter

      public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack)
      Deprecated.
      Constructs an ALcdXMLTypedElementAdapter for an anonymous type.
      Parameters:
      aElementAdapterProvider - the element adapter provider to which adapter requests should be forwarded.
      aSchemaProvider - the schema provider to which schema requests should be forwarded.
      aTypeName - the XML type in which the following namestack is defined.
      aElementNameStack - the XML element namestack, pointing to the type for which this adapter is written.
  • Method Details