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 thisExtendedStorageobject as anExtendedStorageXmlstatic ExtendedStorageXmlImplfromImmutableElement(org.jdom2.Element immutableElement) Initialize with the given element.org.jdom2.ElementGet a child node of this ExtendedStorage by name.org.jdom2.ElementProvide 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:ExtendedStorageReturn a view of thisExtendedStorageobject as anExtendedStorageXml- Specified by:
asXmlin interfaceExtendedStorage- Returns:
- this object interpreted as
ExtendedStorageXml
-
getType
Description copied from interface:ExtendedStorageGet the type string for this element. The value is required if ExtendedStorage is present.- Specified by:
getTypein interfaceExtendedStorage- Returns:
- the format
-
getElement
@NotNull public org.jdom2.Element getElement()Provide access to the Element, for subclasses.- Specified by:
getElementin interfaceExtendedStorageXml- Returns:
- this, as an XML element, which should be considered immutable.
-
getChild
Description copied from interface:ExtendedStorageXmlGet a child node of this ExtendedStorage by name.- Specified by:
getChildin interfaceExtendedStorageXml- Parameters:
name- the child element name.- Returns:
- the child element or null.
-