/** * Creates an {@link FormDocument}. * * @param formIdValue * the id of the form that data is about * @param representations * the list of representations of this lexeme, with at most one * lemma for each language code * @param grammaticalFeatures * the grammatical features of the lexeme * @param statementGroups * the list of statement groups of this lexeme; all of them must * have the given lexemeIdValue as their subject * @return a {@link LexemeDocument} corresponding to the input */ public static FormDocument makeFormDocument(FormIdValue formIdValue, List<MonolingualTextValue> representations, List<ItemIdValue> grammaticalFeatures, List<StatementGroup> statementGroups) { return factory.getFormDocument(formIdValue, representations, grammaticalFeatures, statementGroups, 0); }
/** * Creates an {@link FormDocument}. * * @param formIdValue * the id of the form that data is about * @param representations * the list of representations of this lexeme, with at most one * lemma for each language code * @param grammaticalFeatures * the grammatical features of the lexeme * @param statementGroups * the list of statement groups of this lexeme; all of them must * have the given lexemeIdValue as their subject * @return a {@link LexemeDocument} corresponding to the input */ public static FormDocument makeFormDocument(FormIdValue formIdValue, List<MonolingualTextValue> representations, List<ItemIdValue> grammaticalFeatures, List<StatementGroup> statementGroups) { return factory.getFormDocument(formIdValue, representations, grammaticalFeatures, statementGroups, 0); }
public FormDocument filter(FormDocument form) { return dataObjectFactory.getFormDocument( form.getEntityId(), filterMonoLingualTextValues(form.getRepresentations().values()), form.getGrammaticalFeatures(), filterStatementGroups(form.getStatementGroups()), form.getRevisionId() ); }
public FormDocument filter(FormDocument form) { return dataObjectFactory.getFormDocument( form.getEntityId(), filterMonoLingualTextValues(form.getRepresentations().values()), form.getGrammaticalFeatures(), filterStatementGroups(form.getStatementGroups()), form.getRevisionId() ); }