--- /dev/null
+/*
+ * Copyright (c) 2015. Developed by Hedgecode.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.hedgecode.xml.xspf;
+
+import java.util.List;
+
+import org.hedgecode.xml.xspf.bind.Binder;
+import org.hedgecode.xml.xspf.bind.BinderFactory;
+import org.hedgecode.xml.xspf.bind.TrackBinder;
+
+import static org.hedgecode.xml.xspf.XSPFConstants.Format;
+
+/**
+ *
+ *
+ * @author Dmitry Samoshin aka gotty
+ */
+public class XMLBindTrack extends AbstractXMLBindElement implements Track {
+
+ private TrackBinder binder;
+
+ protected XMLBindTrack(TrackBinder binder) {
+ if (binder == null)
+ this.binder = BinderFactory.createTrackBinder();
+ else
+ this.binder = binder;
+ }
+
+ protected XMLBindTrack(Format format) {
+ this.binder = BinderFactory.createTrackBinder(format);
+ }
+
+ @Override
+ protected Binder getBinder() {
+ return binder;
+ }
+
+ @Override
+ public List<String> getLocations() {
+ return binder.getLocations();
+ }
+
+ @Override
+ public void addLocation(String location) {
+ binder.addLocation(location);
+ }
+
+ @Override
+ public List<String> getIdentifiers() {
+ return binder.getIdentifiers();
+ }
+
+ @Override
+ public void addIdentifier(String identifier) {
+ binder.addIdentifier(identifier);
+ }
+
+ @Override
+ public String getAlbum() {
+ return binder.getAlbum();
+ }
+
+ @Override
+ public void setAlbum(String album) {
+ binder.setAlbum(album);
+ }
+
+ @Override
+ public Integer getTrackNum() {
+ return binder.getTrackNum();
+ }
+
+ @Override
+ public void setTrackNum(Integer trackNum) {
+ binder.setTrackNum(trackNum);
+ }
+
+ @Override
+ public Integer getDuration() {
+ return binder.getDuration();
+ }
+
+ @Override
+ public void setDuration(Integer duration) {
+ binder.setDuration(duration);
+ }
+
+}