/** * Adds a general explanation of the data producer's knowledge about the lineage of a dataset. * If a statement already exists, the new one will be appended after a new line. * Storage location is: * * <ul> * <li>{@code metadata/resourceLineage/statement}</li> * </ul> * * @param statement explanation of the data producer's knowledge about the lineage, or {@code null} for no-operation. * * @see #addProcessDescription(CharSequence) */ public final void addLineage(final CharSequence statement) { final InternationalString i18n = trim(statement); if (i18n != null) { final DefaultLineage lineage = lineage(); lineage.setStatement(append(lineage.getStatement(), i18n)); } }