/** * Creates an {@link SenseDocument}. * * @param senseIdValue * the id of the form that data is about * @param glosses * the list of glosses of this lexeme, with at most one * gloss for each language code * @param statementGroups * the list of statement groups of this lexeme; all of them must * have the given lexemeIdValue as their subject * @return a {@link SenseDocument} corresponding to the input */ public static SenseDocument makeSenseDocument(SenseIdValue senseIdValue, List<MonolingualTextValue> glosses, List<StatementGroup> statementGroups) { return factory.getSenseDocument(senseIdValue, glosses, statementGroups, 0); }
/** * Creates an {@link SenseDocument}. * * @param senseIdValue * the id of the form that data is about * @param glosses * the list of glosses of this lexeme, with at most one * gloss for each language code * @param statementGroups * the list of statement groups of this lexeme; all of them must * have the given lexemeIdValue as their subject * @return a {@link SenseDocument} corresponding to the input */ public static SenseDocument makeSenseDocument(SenseIdValue senseIdValue, List<MonolingualTextValue> glosses, List<StatementGroup> statementGroups) { return factory.getSenseDocument(senseIdValue, glosses, statementGroups, 0); }
public SenseDocument filter(SenseDocument sense) { return dataObjectFactory.getSenseDocument( sense.getEntityId(), filterMonoLingualTextValues(sense.getGlosses().values()), filterStatementGroups(sense.getStatementGroups()), sense.getRevisionId() ); }
public SenseDocument filter(SenseDocument sense) { return dataObjectFactory.getSenseDocument( sense.getEntityId(), filterMonoLingualTextValues(sense.getGlosses().values()), filterStatementGroups(sense.getStatementGroups()), sense.getRevisionId() ); }