Coverage Report - org.apache.commons.feedparser.NS
 
Classes in this File Line Coverage Branch Coverage Complexity
NS
0%
0/27
N/A
0
 
 1  
 /*
 2  
  * Copyright 1999,2004 The Apache Software Foundation.
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 package org.apache.commons.feedparser;
 18  
 
 19  
 import org.jaxen.SimpleNamespaceContext;
 20  
 import org.jdom.Namespace;
 21  
 
 22  
 /**
 23  
  * A class to manage XML namespaces
 24  
  *
 25  
  * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
 26  
  * @version $Id: NS.java 373614 2006-01-30 22:31:21Z mvdb $
 27  
  */
 28  0
 public class NS {
 29  
 
 30  0
     public static final Namespace RDFS =
 31  
         Namespace.getNamespace( "rdfs", "http://www.w3.org/2000/01/rdf-schema#" );
 32  
 
 33  0
     public static final Namespace FOAF =
 34  
         Namespace.getNamespace( "foaf", "http://xmlns.com/foaf/0.1/" );
 35  
 
 36  0
     public static final Namespace KR =
 37  
         Namespace.getNamespace( "kr", "http://ksa.peerfear.org/ksa-rdf#" );
 38  
 
 39  0
     public static final Namespace CONTENT =
 40  
         Namespace.getNamespace( "content", "http://purl.org/rss/1.0/modules/content/" );
 41  
 
 42  0
     public static final Namespace QUOTE =
 43  
         Namespace.getNamespace( "quote", "http://purl.org/rss/1.0/modules/quote/" );
 44  
 
 45  0
     public static final Namespace RDF =
 46  
         Namespace.getNamespace( "rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#" );
 47  
 
 48  0
     public static final Namespace RSS =
 49  
         Namespace.getNamespace( "rss", "http://purl.org/rss/1.0/" );
 50  
 
 51  0
     public static final Namespace AGG =
 52  
         Namespace.getNamespace( "agg", "http://purl.org/rss/modules/aggregation/" );
 53  
 
 54  0
     public static final Namespace IM =
 55  
         Namespace.getNamespace( "im", "http://purl.org/rss/1.0/item-images/" );
 56  
 
 57  0
     public static final Namespace DC =
 58  
         Namespace.getNamespace( "dc", "http://purl.org/dc/elements/1.1/" );
 59  
 
 60  0
     public static final Namespace DCTERMS =
 61  
         Namespace.getNamespace( "dcterms", "http://purl.org/dc/terms/" );
 62  
 
 63  0
     public static final Namespace SUBSCRIPTION =
 64  
         Namespace.getNamespace( "sub", "http://purl.org/rss/1.0/modules/subscription/" );
 65  
 
 66  0
     public static final Namespace NC =
 67  
         Namespace.getNamespace( "NC", "http://home.netscape.com/NC-rdf#" );
 68  
 
 69  0
     public static final Namespace XHTML =
 70  
         Namespace.getNamespace( "xhtml", "http://www.w3.org/1999/xhtml" );
 71  
 
 72  0
     public static final Namespace ATOM =
 73  
         Namespace.getNamespace( "atom", "http://purl.org/atom/ns#" );
 74  
 
 75  0
     public static final Namespace WFW =
 76  
         Namespace.getNamespace( "wfw", "http://wellformedweb.org/CommentAPI/" );
 77  
     
 78  
     /**
 79  
      * mod_taxonomy
 80  
      */
 81  0
     public static final Namespace TAXO =
 82  
         Namespace.getNamespace( "taxo", "http://purl.org/rss/1.0/modules/taxonomy/" );
 83  
 
 84  0
     public static SimpleNamespaceContext context = null;
 85  
 
 86  
     static {
 87  
 
 88  
         //create all namespace contexts and do it ONCE
 89  0
         context = new SimpleNamespaceContext();
 90  0
         context.addNamespace( ATOM.getPrefix(), ATOM.getURI() );
 91  0
         context.addNamespace( DC.getPrefix(), DC.getURI() );
 92  0
         context.addNamespace( FOAF.getPrefix(), FOAF.getURI() );
 93  0
         context.addNamespace( RDF.getPrefix(), RDF.getURI() );
 94  0
         context.addNamespace( RDFS.getPrefix(), RDFS.getURI() );
 95  0
         context.addNamespace( TAXO.getPrefix(), TAXO.getURI() );
 96  
 
 97  0
     }
 98  
     
 99  
 }