public interface StructureProvider
@MimeRegistration(mimeType = "text/foo", service = StructureProvider.class)
public class FooStructureProvider implements StructureProvider {
...
}
| Modifier and Type | Interface and Description |
|---|---|
static class |
StructureProvider.Builder
Builder for
StructureElement instances. |
| Modifier and Type | Method and Description |
|---|---|
static StructureProvider.Builder |
copy(StructureElement from)
Create builder for
StructureElement instances from copy of input element. |
List<StructureElement> |
getStructure(Document doc)
Resolves a structure tree of symbols at the given document.
|
static StructureProvider.Builder |
newBuilder(String name,
StructureElement.Kind kind)
Create builder for
StructureElement instances. |
@NonNull List<StructureElement> getStructure(@NonNull Document doc)
doc - document on which to operate.static StructureProvider.Builder newBuilder(@NonNull String name, @NonNull StructureElement.Kind kind)
StructureElement instances.name - the name of the structure elementkind - the kind of structure elementstatic StructureProvider.Builder copy(@NonNull StructureElement from)
StructureElement instances from copy of input element.from - element that is copied