In package com.eden.orchid.api.generators

public abstract class OrchidCollection<T> extends Object implements Descriptive

since: v1.0.0 public abstract

A Collection represents a set of local resources which are consumed by a generator. Inspired by (and used for) the Netlify CMS, Collections can also be used for other descriptive purposes, and are an opt-in feature of Generators.

Fields

String collectionType final
Field Annotations:
@Getter

String collectionId final
Field Annotations:
@Getter

Constructors

OrchidCollection(String collectionType, String collectionId, List<E> items) public

Parameters:
  • String collectionType
  • String collectionId
  • List items
OrchidCollection(OrchidGenerator generator, String collectionId, List<E> items) public

Parameters:

Methods

Stream<T> find(String id) abstract protected

Parameters:
  • String id
Stream<T> findMatches(String id) public

Parameters:
  • String id
String getTitle() public

void setItems(List<E> items) public

Parameters:
  • List items
void clear() public