Package churchillobjects.rss4j.model

Examples of churchillobjects.rss4j.model.RssNamespace


     * normally. Otherwise, throws an RssParseException which halts processing.
     */
    protected void checkDublinCore() throws RssParseException{
        Enumeration enumeration = namespaces.elements();
        while(enumeration.hasMoreElements()){
            RssNamespace ns = (RssNamespace)enumeration.nextElement();
            if(ns!=null){
                if(RssDublinCore.PREFIX.equals(ns.getPrefix()) && RssDublinCore.XMLNS_VALUE.equals(ns.getUri())){
                    return;
                }
            }
        }
        throw new RssParseException("Elements were found using Dublin Core but its namespace ("+RssDublinCore.XMLNS+"=\""+RssDublinCore.XMLNS_VALUE+"\") was not specified in the document header");
View Full Code Here


     * normally. Otherwise, throws an RssParseException which halts processing.
     */
    protected void checkJbnPatch() throws RssParseException{
        Enumeration enumeration = namespaces.elements();
        while(enumeration.hasMoreElements()){
            RssNamespace ns = (RssNamespace)enumeration.nextElement();
            if(ns!=null){
                if( RssJbnPatch.PREFIX.equals(ns.getPrefix()) && RssJbnPatch.XMLNS_VALUE.equals(ns.getUri())){
                    return;
                }
            }
        }
        throw new RssParseException("Elements were found using JBN Patch but its namespace ("+RssJbnPatch.XMLNS+"=\""+RssJbnPatch.XMLNS_VALUE+"\") was not specified in the document header");
View Full Code Here

     * normally. Otherwise, throws an RssParseException which halts processing.
     */
    protected void checkSyndication() throws RssParseException{
        Enumeration enumeration = namespaces.elements();
        while(enumeration.hasMoreElements()){
            RssNamespace ns = (RssNamespace)enumeration.nextElement();
            if(ns!=null){
                if(RssSyndication.PREFIX.equals(ns.getPrefix()) && RssSyndication.XMLNS_VALUE.equals(ns.getUri())){
                    return;
                }
            }
        }
        throw new RssParseException("Elements were found using Syndication but its namespace ("+RssSyndication.XMLNS+"=\""+RssSyndication.XMLNS_VALUE+"\") was not specified in the document header");
View Full Code Here

   * @param prefix
   * @param uri
   * @throws SAXException
   */
  public void startPrefixMapping(String prefix, String uri) throws SAXException{
    namespaces.addElement(new RssNamespace(prefix, uri));
    if(prefix.length()==0){
      if("http://my.netscape.com/rdf/simple/0.9/".equals(uri)){
        document.setVersion(VERSION_90);
        DefaultHandler handler = new RssParserImpl090(document, namespaces);
        parser.setContentHandler(handler);
View Full Code Here

TOP

Related Classes of churchillobjects.rss4j.model.RssNamespace

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.