com.almworks.jira.structure.api.backup.BackupReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-api Show documentation
Show all versions of structure-api Show documentation
Public API for the Structure Plugin for JIRA
package com.almworks.jira.structure.api.backup;
import com.atlassian.annotations.Internal;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Internal
public interface BackupReader {
/**
* Reads a section of the current element. {@code elementReader} is called for each element inside the section
* when {@code BackupReader} reaches it. Reading stops on a section's end tag.
*
* @param elementReader reader of the elements inside the section; accepts current element name as a parameter
*/
void readSection(@NotNull ElementReader elementReader);
void skipSection();
String getElementText();
@Nullable
String getAttributeValue(String localName);
@FunctionalInterface
interface ElementReader {
void readElement(@NotNull String elementName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy