Interface SchemaXmlParser

All Known Implementing Classes:
SchemaXmlParser.StandardParser

public interface SchemaXmlParser
Interface for parsing XML schema Elements.
  • Method Details

    • getRequiredAttribute

      @NotNull static String getRequiredAttribute(@NotNull org.jdom2.Element element, @NotNull String attributeName)
      Get an attribute, throwing a SchemaException if it is not set.
      Parameters:
      element - the Element containing attributes
      attributeName - name of the attribute to fetch
      Returns:
      the String value of the attribute
      Throws:
      SchemaException - if the attribute is not set
    • getNamespace

      @NotNull String getNamespace()
    • getTableName

      @NotNull String getTableName()
    • getDefaultMergeFormat

      @NotNull Database.StorageFormat getDefaultMergeFormat() throws SchemaValidationException
      Throws:
      SchemaValidationException
    • getMergeCodecName

      @Nullable String getMergeCodecName(@NotNull String mergeFormat) throws SchemaValidationException
      Throws:
      SchemaValidationException
    • getNamespaceSet

      @NotNull NamespaceSet getNamespaceSet()
    • getStorageType

      @Nullable Integer getStorageType()
    • getPartitionKeyFormula

      @Nullable String getPartitionKeyFormula()
    • getTableDefinition

      @NotNull TableDefinition getTableDefinition()
    • getLoggers

      @NotNull List<com.illumon.iris.db.schema.xml.LoggerXmlImpl> getLoggers()
    • getListeners

      @NotNull List<com.illumon.iris.db.schema.xml.ListenerXmlImpl> getListeners()
    • getLoggerListeners

      @NotNull List<com.illumon.iris.db.schema.xml.LoggerListenerXmlImpl> getLoggerListeners()
    • getImportSources

      @NotNull List<com.illumon.iris.db.schema.xml.ImportSourceXmlImpl> getImportSources()
    • getValidator

      @Nullable Validator getValidator()
    • validate

      @NotNull List<SchemaValidationException> validate(boolean lenientValidation) throws SchemaValidationException
      Validate the XML in the element, throw an exception if any errors are found.
      Parameters:
      lenientValidation - if true, ClassNotFoundExceptions will be ignored when validating
      Returns:
      SchemaValidationExceptions list of exceptions that were ignored because lenientValidation==true
      Throws:
      SchemaValidationException - if any errors are found validating
    • getDataIndexSets

      List<String[]> getDataIndexSets()
    • getExtendedStorage

      @Nullable ExtendedStorageXml getExtendedStorage()