info.freelibrary.iiif.presentation.v3.properties.Summary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jiiify-presentation-v3 Show documentation
Show all versions of jiiify-presentation-v3 Show documentation
A Java Library for version 3 of the IIIF Presentation API
package info.freelibrary.iiif.presentation.v3.properties;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import info.freelibrary.iiif.presentation.v3.utils.JsonKeys;
/**
* A short textual summary intended to be conveyed to the user when the metadata entries for the resource are not being
* displayed. This could be used as a brief description for item level search results, for small-screen environments, or
* as an alternative user interface when the metadata property is not currently being rendered.
*/
@JsonDeserialize(using = SummaryDeserializer.class)
public class Summary extends I18nProperty {
/**
* Creates a summary from the supplied internationalization(s).
*
* @param aI18nArray An array of internationalizations for the summary
*/
public Summary(final I18n... aI18nArray) {
super(aI18nArray);
}
/**
* Creates a summary from the supplied string(s).
*
* @param aStringArray An array of strings for the summary
*/
public Summary(final String... aStringArray) {
super(aStringArray);
}
/**
* Sets the string value of the property, removing all other previous strings.
*
* @param aStringArray A string value
* @return True if the property's value was set
*/
@Override
public Summary setStrings(final String... aStringArray) {
return (Summary) super.setStrings(aStringArray);
}
/**
* Sets the internationalization of the property, removing all other previous internationalizations.
*
* @param aI18nArray An array of I18n(s).
* @return True if the property's value was set
*/
@Override
public Summary setI18ns(final I18n... aI18nArray) {
return (Summary) super.setI18ns(aI18nArray);
}
/**
* Adds a string value to the property.
*
* @param aStringArray An array of strings to add to the property
* @return The property
*/
@Override
public Summary addStrings(final String... aStringArray) {
return (Summary) super.addStrings(aStringArray);
}
/**
* Adds an internationalization to the property.
*
* @param aI18nArray A list of internationalizations
* @return The property
*/
@Override
public Summary addI18ns(final I18n... aI18nArray) {
return (Summary) super.addI18ns(aI18nArray);
}
@Override
@JsonGetter(JsonKeys.SUMMARY)
protected Object toMap() {
return super.toMap();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy