2 * Copyright (c) 2015-2019. Developed by Hedgecode.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.hedgecode.xml.xspf;
20 import java.io.OutputStream;
21 import java.io.UnsupportedEncodingException;
22 import java.util.Date;
23 import java.util.List;
25 import javax.xml.bind.JAXBException;
27 import org.hedgecode.xml.xspf.validate.ValidateException;
32 * @author Dmitry Samoshin aka gotty
34 public interface Playlist extends Element {
38 void setLocation(String location);
40 String getIdentifier();
42 void setIdentifier(String identifier);
46 void setDate(Date date);
50 void setLicense(String license);
52 Attribution getAttribution();
54 void setAttribution(Attribution attribution);
56 List<Track> getTracks();
58 void addTrack(Track track);
60 void read(File inputFile) throws JAXBException;
62 void write(File outputFile) throws JAXBException;
64 public OutputStream getAsStream() throws JAXBException;
66 public String getAsString() throws JAXBException, UnsupportedEncodingException;
68 void validate() throws ValidateException;