/** * Creates a {@link MonolingualTextValue}. * * @param text * the text of the value * @param languageCode * the language code of the value * @return a {@link MonolingualTextValue} corresponding to the input */ public static MonolingualTextValue makeMonolingualTextValue(String text, String languageCode) { return factory.getMonolingualTextValue(text, languageCode); }
/** * Creates a {@link MonolingualTextValue}. * * @param text * the text of the value * @param languageCode * the language code of the value * @return a {@link MonolingualTextValue} corresponding to the input */ public static MonolingualTextValue makeMonolingualTextValue(String text, String languageCode) { return factory.getMonolingualTextValue(text, languageCode); }
/** * Adds an additional description to the constructed document. * * @param text * the text of the description * @param languageCode * the language code of the description * @return builder object to continue construction */ public T withDescription(String text, String languageCode) { withDescription(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
/** * Adds an additional alias to the constructed document. * * @param text * the text of the alias * @param languageCode * the language code of the alias * @return builder object to continue construction */ public T withAlias(String text, String languageCode) { withAlias(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
/** * Adds an additional alias to the constructed document. * * @param text * the text of the alias * @param languageCode * the language code of the alias * @return builder object to continue construction */ public T withAlias(String text, String languageCode) { withAlias(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
/** * Copies a {@link MonolingualTextValue}. This method is not affected by the * language filter option (see * {@link DatamodelConverter#setOptionLanguageFilter(Set)}). * * @param object * object to copy * @return copied object */ public MonolingualTextValue copy(MonolingualTextValue object) { return dataObjectFactory.getMonolingualTextValue(object.getText(), object.getLanguageCode()); }
/** * Copies a {@link MonolingualTextValue}. This method is not affected by the * language filter option (see * {@link DatamodelConverter#setOptionLanguageFilter(Set)}). * * @param object * object to copy * @return copied object */ public MonolingualTextValue copy(MonolingualTextValue object) { return dataObjectFactory.getMonolingualTextValue(object.getText(), object.getLanguageCode()); }
/** * Adds an additional label to the constructed document. * * @param text * the text of the label * @param languageCode * the language code of the label * @return builder object to continue construction */ public T withLabel(String text, String languageCode) { withLabel(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
/** * Adds an additional description to the constructed document. * * @param text * the text of the description * @param languageCode * the language code of the description * @return builder object to continue construction */ public T withDescription(String text, String languageCode) { withDescription(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }
/** * Adds an additional label to the constructed document. * * @param text * the text of the label * @param languageCode * the language code of the label * @return builder object to continue construction */ public T withLabel(String text, String languageCode) { withLabel(factory.getMonolingualTextValue(text, languageCode)); return getThis(); }