Package org.internna.iwebmvc.model.core

Examples of org.internna.iwebmvc.model.core.PlayList


    }

    @Override
    @SuppressWarnings("unchecked")
    public void setAsText(String text) throws IllegalArgumentException {
        PlayList docs = (PlayList) getValue();
        if (docs == null) docs = new PlayList();
        for (String doc : text.split("##")) {
            if (StringUtils.hasText(doc)) {
                if (doc.startsWith("-")) {
                    Iterator<Audio> it = docs.getPlayList().iterator();
                    while (it.hasNext()) {
                        Audio d = it.next();
                        if (doc.substring(1).equals(d.getUri())) it.remove();
                    }
                } else {
                    Audio document = getAudio(doc);
                    if (document != null) docs.addAudio(document);
                }
            }
        }
        setValue(docs);
    }
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.model.core.PlayList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.