Package com.illumon.iris.db.schema.xml
Class ExtendedStorageXmlImpl
java.lang.Object
com.illumon.iris.db.schema.xml.ExtendedStorageXmlImpl
- All Implemented Interfaces:
ExtendedStorage
,ExtendedStorageXml
Class for ExtendedStorageXml classes; parses common fields from the XML Element.
-
Method Summary
Modifier and TypeMethodDescriptionasXml()
Return a view of thisExtendedStorage
object as anExtendedStorageXml
static ExtendedStorageXmlImpl
fromImmutableElement
(org.jdom2.Element immutableElement) Initialize with the given element.org.jdom2.Element
Get a child node of this ExtendedStorage by name.org.jdom2.Element
Provide access to the Element, for subclasses.getType()
Get the type string for this 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
Description copied from interface:ExtendedStorage
Return a view of thisExtendedStorage
object as anExtendedStorageXml
- Specified by:
asXml
in interfaceExtendedStorage
- Returns:
- this object interpreted as
ExtendedStorageXml
-
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 interfaceExtendedStorage
- Returns:
- the format
-
getElement
@NotNull public org.jdom2.Element getElement()Provide access to the Element, for subclasses.- Specified by:
getElement
in interfaceExtendedStorageXml
- Returns:
- this, as an XML element, which should be considered immutable.
-
getChild
Description copied from interface:ExtendedStorageXml
Get a child node of this ExtendedStorage by name.- Specified by:
getChild
in interfaceExtendedStorageXml
- Parameters:
name
- the child element name.- Returns:
- the child element or null.
-