Package com.illumon.iris.db.schema.xml
Interface SchemaXmlParser
- All Known Implementing Classes:
SchemaXmlParser.StandardParser
public interface SchemaXmlParser
Interface for parsing XML schema Elements.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
Contract: copies element, does not change it. -
Method Summary
Modifier and TypeMethodDescriptionList<com.illumon.iris.db.schema.xml.ImportSourceXmlImpl>
List<com.illumon.iris.db.schema.xml.ListenerXmlImpl>
List<com.illumon.iris.db.schema.xml.LoggerListenerXmlImpl>
List<com.illumon.iris.db.schema.xml.LoggerXmlImpl>
getMergeCodecName
(String mergeFormat) static String
getRequiredAttribute
(org.jdom2.Element element, String attributeName) Get an attribute, throwing a SchemaException if it is not set.validate
(boolean lenientValidation) Validate the XML in the element, throw an exception if any errors are found.
-
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 attributesattributeName
- name of the attribute to fetch- Returns:
- the String value of the attribute
- Throws:
SchemaException
- if the attribute is not set
-
getNamespace
-
getTableName
-
getDefaultMergeFormat
- Throws:
SchemaValidationException
-
getMergeCodecName
- Throws:
SchemaValidationException
-
getNamespaceSet
-
getStorageType
-
getPartitionKeyFormula
-
getTableDefinition
-
getLoggers
-
getListeners
-
getLoggerListeners
-
getImportSources
-
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
-
getExtendedStorage
-