Package com.rometools.rome.feed.rss

Examples of com.rometools.rome.feed.rss.TextInput


     * @param rssRoot the root element of the RSS document to parse for text-input information.
     * @return the parsed RSSTextInput bean.
     */
    protected TextInput parseTextInput(final Element rssRoot) {

        TextInput textInput = null;

        final Element eTextInput = getTextInput(rssRoot);
        if (eTextInput != null) {

            textInput = new TextInput();

            final Element title = eTextInput.getChild("title", getRSSNamespace());
            if (title != null) {
                textInput.setTitle(title.getText());
            }

            final Element description = eTextInput.getChild("description", getRSSNamespace());
            if (description != null) {
                textInput.setDescription(description.getText());
            }

            final Element name = eTextInput.getChild("name", getRSSNamespace());
            if (name != null) {
                textInput.setName(name.getText());
            }

            final Element link = eTextInput.getChild("link", getRSSNamespace());
            if (link != null) {
                textInput.setLink(link.getText());
            }

        }

        return textInput;
View Full Code Here


    protected String getTextInputLabel() {
        return "textInput";
    }

    protected void addTextInput(final Channel channel, final Element parent) throws FeedException {
        final TextInput textInput = channel.getTextInput();
        if (textInput != null) {
            final Element eTextInput = new Element(getTextInputLabel(), getFeedNamespace());
            populateTextInput(textInput, eTextInput);
            checkTextInputConstraints(eTextInput);
            parent.addContent(eTextInput);
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.rss.TextInput

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.