Class ImportSourceXmlImpl

java.lang.Object
io.deephaven.enterprise.schema.xml.ImportSourceXmlImpl
All Implemented Interfaces:
ImportSource

public class ImportSourceXmlImpl extends Object implements ImportSource
Immutable implementation of ImportSource that simply wraps the XML element and exposes a few high-level attributes.
  • Method Details

    • getName

      @Nullable public String getName()
      Description copied from interface: ImportSource
      Get the name of this import source.
      Specified by:
      getName in interface ImportSource
      Returns:
      the import source name, if set.
    • getType

      @NotNull public String getType()
      Description copied from interface: ImportSource
      Get the type of this import source.
      Specified by:
      getType in interface ImportSource
      Returns:
      the type of this import source, if set.
    • getXmlElement

      @NotNull public org.jdom2.Element getXmlElement()
      Description copied from interface: ImportSource
      This is a bit of a compromise for now. The element is passed around through too many layers to refactor.
      Specified by:
      getXmlElement in interface ImportSource
      Returns:
      this, as an XML element, which should be considered immutable.