com.github.anno4j.model.ExternalWebResourceSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anno4j-core Show documentation
Show all versions of anno4j-core Show documentation
Read and write API for W3C Web Annotation Data Model (http://www.w3.org/TR/annotation-model/) and W3C Open Annotation Data Model (http://www.openannotation.org/spec/core/)
package com.github.anno4j.model;
import java.util.HashSet;
/**
* Support class for the ExternalWebResource interface.
*/
public abstract class ExternalWebResourceSupport extends CreationProvenanceSupport implements ExternalWebResource {
/**
* {@inheritDoc}
*/
@Override
public void addLanguage(String language) {
HashSet languages = new HashSet<>();
if(this.getLanguages() != null) {
languages.addAll(this.getLanguages());
}
languages.add(language);
this.setLanguages(languages);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy