<commit_before>package dk.statsbiblioteket.doms.client.objects;

import dk.statsbiblioteket.doms.client.datastreams.Datastream;
import dk.statsbiblioteket.doms.client.exceptions.NotFoundException;
import dk.statsbiblioteket.doms.client.exceptions.ServerOperationFailed;
import dk.statsbiblioteket.doms.client.relations.LiteralRelation;
import dk.statsbiblioteket.doms.client.relations.ObjectRelation;
import dk.statsbiblioteket.doms.client.relations.Relation;
import dk.statsbiblioteket.doms.client.utils.Constants;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * The digital Object
 */
public interface DigitalObject {

    /**
     * Saves the digital object to the Server.
     * @throws ServerOperationFailed
     */
    void save() throws ServerOperationFailed;

    /**
     * Saves the digital object to the Server.
     * @throws ServerOperationFailed
     */
    void save(String viewAngle) throws ServerOperationFailed;


    /**
     * @return the object pid
     */
    String getPid();

    Set<CollectionObject> getCollections() throws ServerOperationFailed;

    public void addToCollection(CollectionObject collection) throws ServerOperationFailed;

    public void addToCollection(CollectionObject collection, String viewAngle) throws ServerOperationFailed;

    /**
     * @return the object's content models
     */
    List<ContentModelObject> getType() throws ServerOperationFailed;

    /**
     * @return the object title
     */
    String getTitle() throws ServerOperationFailed;

    /**
     * Set the object title. Will not save, yet
     * @param title the title
     */
    void setTitle(String title) throws ServerOperationFailed;

    /**<commit_msg>Removed misunderstood method<commit_after>package dk.statsbiblioteket.doms.client.objects;

import dk.statsbiblioteket.doms.client.datastreams.Datastream;
import dk.statsbiblioteket.doms.client.exceptions.NotFoundException;
import dk.statsbiblioteket.doms.client.exceptions.ServerOperationFailed;
import dk.statsbiblioteket.doms.client.relations.LiteralRelation;
import dk.statsbiblioteket.doms.client.relations.ObjectRelation;
import dk.statsbiblioteket.doms.client.relations.Relation;
import dk.statsbiblioteket.doms.client.utils.Constants;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * The digital Object
 */
public interface DigitalObject {

    /**
     * Saves the digital object to the Server.
     * @throws ServerOperationFailed
     */
    void save() throws ServerOperationFailed;

    /**
     * Saves the digital object to the Server.
     * @throws ServerOperationFailed
     */
    void save(String viewAngle) throws ServerOperationFailed;


    /**
     * @return the object pid
     */
    String getPid();

    Set<CollectionObject> getCollections() throws ServerOperationFailed;

    public void addToCollection(CollectionObject collection) throws ServerOperationFailed;

    /**
     * @return the object's content models
     */
    List<ContentModelObject> getType() throws ServerOperationFailed;

    /**
     * @return the object title
     */
    String getTitle() throws ServerOperationFailed;

    /**
     * Set the object title. Will not save, yet
     * @param title the title
     */
    void setTitle(String title) throws ServerOperationFailed;

    /**
{'fraction_non_alphanumeric': 0.08957018334836189, 'fraction_numerical': 0.0, 'mean_word_length': 3.740740740740741, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6652183', 'n_tokens_mistral': 975, 'n_tokens_neox': 926, 'n_words': 220}