Class ExtendedStorageXmlImpl

java.lang.Object
com.illumon.iris.db.schema.xml.ExtendedStorageXmlImpl
All Implemented Interfaces:
ExtendedStorage, ExtendedStorageXml

@InternalUseOnly public class ExtendedStorageXmlImpl extends Object implements ExtendedStorageXml
Class for ExtendedStorageXml classes; parses common fields from the XML Element.
  • Method Details

    • fromImmutableElement

      public static ExtendedStorageXmlImpl fromImmutableElement(@NotNull org.jdom2.Element immutableElement)
      Initialize with the given element. The caller promises that the element is already (effectively) immutable.
      Parameters:
      immutableElement - the source element, must be effectively immutable.
    • asXml

      public ExtendedStorageXml asXml()
      Description copied from interface: ExtendedStorage
      Return a view of this ExtendedStorage object as an ExtendedStorageXml
      Specified by:
      asXml in interface ExtendedStorage
      Returns:
      this object interpreted as ExtendedStorageXml
    • getType

      @NotNull public String getType()
      Description copied from interface: ExtendedStorage
      Get the type string for this element. The value is required if ExtendedStorage is present.
      Specified by:
      getType in interface ExtendedStorage
      Returns:
      the format
    • getElement

      @NotNull public org.jdom2.Element getElement()
      Provide access to the Element, for subclasses.
      Specified by:
      getElement in interface ExtendedStorageXml
      Returns:
      this, as an XML element, which should be considered immutable.
    • getChild

      @Nullable public org.jdom2.Element getChild(@NotNull String name)
      Description copied from interface: ExtendedStorageXml
      Get a child node of this ExtendedStorage by name.
      Specified by:
      getChild in interface ExtendedStorageXml
      Parameters:
      name - the child element name.
      Returns:
      the child element or null.