| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| MediaItemImpl |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one | |
| 3 | * or more contributor license agreements. See the NOTICE file | |
| 4 | * distributed with this work for additional information | |
| 5 | * regarding copyright ownership. The ASF licenses this file | |
| 6 | * to you under the Apache License, Version 2.0 (the | |
| 7 | * "License"); you may not use this file except in compliance | |
| 8 | * with the License. You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, | |
| 13 | * software distributed under the License is distributed on an | |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| 15 | * KIND, either express or implied. See the License for the | |
| 16 | * specific language governing permissions and limitations under the License. | |
| 17 | */ | |
| 18 | package org.apache.shindig.social.core.model; | |
| 19 | ||
| 20 | import org.apache.shindig.social.opensocial.model.MediaItem; | |
| 21 | ||
| 22 | /** | |
| 23 | * see | |
| 24 | * http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.Activity.MediaItem.Field.html | |
| 25 | * | |
| 26 | */ | |
| 27 | public class MediaItemImpl implements MediaItem { | |
| 28 | ||
| 29 | private String mimeType; | |
| 30 | private Type type; | |
| 31 | private String url; | |
| 32 | ||
| 33 | 17 | public MediaItemImpl() { |
| 34 | 17 | } |
| 35 | ||
| 36 | 40 | public MediaItemImpl(String mimeType, Type type, String url) { |
| 37 | 40 | this.mimeType = mimeType; |
| 38 | 40 | this.type = type; |
| 39 | 40 | this.url = url; |
| 40 | 40 | } |
| 41 | ||
| 42 | public String getMimeType() { | |
| 43 | 24 | return mimeType; |
| 44 | } | |
| 45 | ||
| 46 | public void setMimeType(String mimeType) { | |
| 47 | 15 | this.mimeType = mimeType; |
| 48 | 15 | } |
| 49 | ||
| 50 | public Type getType() { | |
| 51 | 22 | return type; |
| 52 | } | |
| 53 | ||
| 54 | public void setType(Type type) { | |
| 55 | 15 | this.type = type; |
| 56 | 15 | } |
| 57 | ||
| 58 | public String getUrl() { | |
| 59 | 23 | return url; |
| 60 | } | |
| 61 | ||
| 62 | public void setUrl(String url) { | |
| 63 | 15 | this.url = url; |
| 64 | 15 | } |
| 65 | } |