Class RSS090Generator

    • Constructor Detail

      • RSS090Generator

        public RSS090Generator()
      • RSS090Generator

        protected RSS090Generator​(String type)
    • Method Detail

      • generate

        public org.jdom2.Document generate​(WireFeed feed)
                                    throws FeedException
        Description copied from interface: WireFeedGenerator
        Creates an XML document (JDOM) for the given feed bean.

        Parameters:
        feed - the feed bean to generate the XML document from.
        Returns:
        the generated XML document (JDOM).
        Throws:
        FeedException - thrown if the XML Document could not be created.
      • getFeedNamespace

        protected org.jdom2.Namespace getFeedNamespace()
      • getRDFNamespace

        protected org.jdom2.Namespace getRDFNamespace()
      • getContentNamespace

        protected org.jdom2.Namespace getContentNamespace()
      • createDocument

        protected org.jdom2.Document createDocument​(org.jdom2.Element root)
      • createRootElement

        protected org.jdom2.Element createRootElement​(Channel channel)
      • populateChannel

        protected void populateChannel​(Channel channel,
                                       org.jdom2.Element eChannel)
        Populates the given channel with parsed data from the ROME element that holds the channel data.
        Parameters:
        channel - the channel into which parsed data will be added.
        eChannel - the XML element that holds the data for the channel.
      • checkNotNullAndLength

        protected void checkNotNullAndLength​(org.jdom2.Element parent,
                                             String childName,
                                             int minLen,
                                             int maxLen)
                                      throws FeedException
        Throws:
        FeedException
      • checkLength

        protected void checkLength​(org.jdom2.Element parent,
                                   String childName,
                                   int minLen,
                                   int maxLen)
                            throws FeedException
        Throws:
        FeedException
      • populateImage

        protected void populateImage​(Image image,
                                     org.jdom2.Element eImage)
      • getTextInputLabel

        protected String getTextInputLabel()
      • populateTextInput

        protected void populateTextInput​(TextInput textInput,
                                         org.jdom2.Element eTextInput)
      • populateItem

        protected void populateItem​(Item item,
                                    org.jdom2.Element eItem,
                                    int index)
      • generateSimpleElement

        protected org.jdom2.Element generateSimpleElement​(String name,
                                                          String value)
      • checkChannelConstraints

        protected void checkChannelConstraints​(org.jdom2.Element eChannel)
                                        throws FeedException
        Throws:
        FeedException
      • checkImageConstraints

        protected void checkImageConstraints​(org.jdom2.Element eImage)
                                      throws FeedException
        Throws:
        FeedException
      • checkTextInputConstraints

        protected void checkTextInputConstraints​(org.jdom2.Element eTextInput)
                                          throws FeedException
        Throws:
        FeedException
      • checkItemsConstraints

        protected void checkItemsConstraints​(org.jdom2.Element parent)
                                      throws FeedException
        Throws:
        FeedException
      • checkItemConstraints

        protected void checkItemConstraints​(org.jdom2.Element eItem)
                                     throws FeedException
        Throws:
        FeedException