001/** 002 * Copyright 2015 Tampere University of Technology, Pori Department 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package service.tut.pori.fuzzyvisuals; 017 018import java.util.List; 019 020import javax.xml.bind.annotation.XmlAccessType; 021import javax.xml.bind.annotation.XmlAccessorType; 022import javax.xml.bind.annotation.XmlRootElement; 023 024import core.tut.pori.utils.MediaUrlValidator.MediaType; 025import service.tut.pori.contentanalysis.MediaObject; 026import service.tut.pori.contentanalysis.MediaObjectList; 027 028/** 029 * Minimal implementation of Media for Fuzzy Visuals 030 * 031 */ 032@XmlRootElement(name=Definitions.ELEMENT_MEDIA) 033@XmlAccessorType(XmlAccessType.NONE) 034public class FuzzyMedia extends service.tut.pori.contentanalysis.Media { 035 036 /** 037 * for serialization 038 */ 039 public FuzzyMedia(){ 040 // nothing needed 041 } 042 043 /** 044 * 045 * @param guid 046 * @param mediaObjects 047 * @param mediaType 048 */ 049 public FuzzyMedia(String guid, List<MediaObject> mediaObjects, MediaType mediaType){ 050 super.setGUID(guid); 051 super.setMediaType(mediaType); 052 super.setMediaObjects(MediaObjectList.getMediaObjectList(mediaObjects, null)); 053 } 054}