package com.ntsky.bbs.webfeed;

public class Globals {

    final public static String EMPTY_STR = ""; 
    
    // version 
    final public static String VERSION_RSS_091 = "0.91";
    final public static String VERSION_RSS_092 = "0.92";
    final public static String VERSION_RSS_100 = "1.0";
    final public static String VERSION_RSS_200 = "2.0";
    final public static String VERSION_ATOM_03 = "0.3";
    
    
    final public static String RSS = "rss";
    
    final public static String VERSION = "version";
    
    /**
     * 频道信息
     */
    final public static String CHANNEL = "channel";
    final public static String CHANNEL_TITLE = "title";
    final public static String CHANNEL_LINK = "link";
    final public static String CHANNEL_DESCRIPTION = "description";
    final public static String CHANNEL_LANGUAGE = "language";
    final public static String CHANNEL_COPYRIGHT = "copyright";
    final public static String CHANNEL_MANAGINGEDITOR = "managingEditor";
    final public static String CHANNEL_WEBMASTER = "webMaster";
    final public static String CHANNEL_RATING = "rating";
    final public static String CHANNEL_PUBDATE = "pubDate";
    final public static String CHANNEL_LASTBUILDDATE = "lastBuildDate";
    final public static String CHANNEL_DOCS = "docs";
    
    final public static String CHANNEL_SKIPDAYS = "skipDays";
    final public static String CHANNEL_SKIPDAYS_DAY = "day";
    
    final public static String CHANNEL_SKIPHOURS = "skipHours";
    final public static String CHANNEL_SKIPHOURS_HOUR = "hour";
    
    final public static String CHANNEL_CATEGORY = "category";
    final public static String CHANNEL_CATEGORY_ATTDOMAIN = "domain";
    
    final public static String CHANNEL_GENERATOR = "generator";
    final public static String CHANNEL_TTL = "ttl";
    
    final public static String CHANNEL_CLOUD = "cloud";
    final public static String CHANNEL_CLOUD_ATTDOMAIN = "domain";
    final public static String CHANNEL_CLOUD_ATTREGISTERPROCEDURE = "registerProcedure";
    
    
    /**
     * TextInput 部分元素
     */
    final public static String TEXTINPUT = "textInput";
    final public static String TEXTINPUT_TITLE = "title";
    final public static String TEXTINPUT_DESCRIPTION = "description";
    final public static String TEXTINPUT_NAME = "name";
    final public static String TEXTINPUT_LINK = "link";
    
    /**
     * Image 元素
     */
    final public static String IMAGE = "image";
    final public static String IMAGE_TITLE = "title";
    final public static String IMAGE_URL = "url";
    final public static String IMAGE_LINK = "link";
    final public static String IMAGE_WIDTH = "width";
    final public static String IMAGE_HEIGHT = "height";
    final public static String IMAGE_DESCRIPTION = "description";
    
    /**
     * ITEM
     */
    final public static String ITEM = "item";
    final public static String ITEM_TITLE = "title";
    final public static String ITEM_LINK = "link";
    final public static String ITEM_DESCRIPTION = "description";
    final public static String ITEM_CATEGORY = "category";
    final public static String ITEM_COMMENTS = "comments";
    final public static String ITEM_AUTHOR = "author";
    final public static String ITEM_PUBDATE = "pubDate";
    
    
    /**
     * RDF
     */
    final public static String RDF = "rdf:RDF";
    final public static String RDF_XMLNS_RDF = "xmlns:rdf";
    final public static String RDF_XMLNS_DC = "xmlns:dc";
    final public static String RDF_XMLNS_SY = "xmlns:sy";
    final public static String RDF_XMLNS_CO = "xmlns:co";
    final public static String RDF_XMLNS_TI = "xmlns:ti";
    final public static String RDF_XMLNS = "xmlns";
    
    final public static String RDF_XMLNS_RDF_VALUE = "http://www.w3.org/1999/02/22-rdf-syntax-ns";
    final public static String RDF_XMLNS_DC_VALUE = "http://purl.org/dc/elements/1.1/";
    final public static String RDF_XMLNS_SY_VALUE = "http://purl.org/rss/1.0/modules/syndication/";
    final public static String RDF_XMLNS_CO_VALUE = "http://purl.org/rss/1.0/modules/company/";
    final public static String RDF_XMLNS_TI_VALUE = "http://purl.org/rss/1.0/modules/textinput/";
    final public static String RDF_XMLNS_VALUE = "http://purl.org/rss/1.0/";
    
    /**
     * ATOM
     */
    final public static String ATOM_XMLNS = "xmlns";
    final public static String ATOM_XMLNS_DC = "xmlns:dc";
    final public static String ATOM_XML_LANG = "xml:lang";
    
    final public static String ATOM_XMLNS_VALUE = "http://purl.org/atom/ns#";
    final public static String ATOM_XMLNS_DC_VALUE = "http://purl.org/dc/elements/1.1/";
    final public static String ATOM_XML_LANG_VALUE = "zh-cn";
    
    final public static String FEED = "feed";
    final public static String FEED_TITLE = "title";
    final public static String FEED_LINK = "link";
    final public static String FEED_LINK_REL = "rel";
    final public static String FEED_LINK_TYPE = "type";
    final public static String FEED_LINK_HREF = "href";
    final public static String FEED_MODIFIED = "modified";
    final public static String FEED_TAGLINE = "tagline";
    
    // 编码格式
    final public static String XML_ENCODING = "UTF-8";
}
