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;
19 import java.util.List;
21 import org.hedgecode.xml.xspf.bind.Binder;
26 * @author Dmitry Samoshin aka gotty
28 public abstract class AbstractXMLBindElement implements Element {
30 protected abstract Binder getBinder();
33 public String getTitle() {
34 return getBinder().getTitle();
38 public void setTitle(String title) {
39 getBinder().setTitle(title);
43 public String getCreator() {
44 return getBinder().getCreator();
48 public void setCreator(String creator) {
49 getBinder().setCreator(creator);
53 public String getAnnotation() {
54 return getBinder().getAnnotation();
58 public void setAnnotation(String annotation) {
59 getBinder().setAnnotation(annotation);
63 public String getInfo() {
64 return getBinder().getInfo();
68 public void setInfo(String info) {
69 getBinder().setInfo(info);
73 public String getImage() {
74 return getBinder().getImage();
78 public void setImage(String image) {
79 getBinder().setImage(image);
83 public List<Link> getLinks() {
84 return getBinder().getLinks();
88 public void addLink(Link link) {
89 getBinder().addLink(link);
93 public List<Meta> getMetas() {
94 return getBinder().getMetas();
98 public void addMeta(Meta meta) {
99 getBinder().addMeta(meta);
103 public List<Extension> getExtensions() {
104 return getBinder().getExtensions();
108 public void addExtension(Extension extension) {
109 getBinder().addExtension(extension);