[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-cvs
Subject:    [Jibx-cvs] core/build/docs/src/com/sosnoski/site Item.java, 1.1,
From:       Dennis Sosnoski <dsosnoski () users ! sourceforge ! net>
Date:       2010-11-21 2:57:44
Message-ID: E1PK07c-0002zs-IE () sfp-cvsdas-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/jibx/core/build/docs/src/com/sosnoski/site
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv11518/build/docs/src/com/sosnoski/site

Modified Files:
	Item.java Page.java 
Log Message:
Add support for meta keywords in header.

Index: Item.java
===================================================================
RCS file: /cvsroot/jibx/core/build/docs/src/com/sosnoski/site/Item.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Item.java	14 Jun 2009 03:44:43 -0000	1.1
--- Item.java	21 Nov 2010 02:57:42 -0000	1.2
***************
*** 131,134 ****
--- 131,144 ----
      }
  
+     /**
+      * Get page keywords.
+      *
+      * @return page keywords for item
+      */
+      
+     public String getKeywords() {
+         return m_page == null ? null : m_page.getKeywords();
+     }
+ 
  	/**
  	 * Get page title.

Index: Page.java
===================================================================
RCS file: /cvsroot/jibx/core/build/docs/src/com/sosnoski/site/Page.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Page.java	14 Jun 2009 03:44:43 -0000	1.1
--- Page.java	21 Nov 2010 02:57:42 -0000	1.2
***************
*** 45,48 ****
--- 45,49 ----
  	private final String m_header;	// header from page
      private final String m_description; // description for page
+     private final String m_keywords;    // keywords for page
  	private final String m_body;	// body text
  	
***************
*** 60,63 ****
--- 61,65 ----
  		String title = null;
          String descript = null;
+         String keywords = null;
  		String header = null;
  		String body = null;
***************
*** 83,89 ****
                          HashMap amap = pbuf.attributes();
                          String name = (String)amap.get("name");
!                         if (name != null &&
!                             "description".equals(name.toLowerCase())) {
!                             descript = (String)amap.get("content");
                          }
                          
--- 85,96 ----
                          HashMap amap = pbuf.attributes();
                          String name = (String)amap.get("name");
!                         if (name != null) {
!                             name = name.toLowerCase();
!                             String content = (String)amap.get("content");
!                             if ("description".equals(name)) {
!                                 descript = content;
!                             } else if ("keywords".equals(name)) {
!                                 keywords = content;
!                             }
                          }
                          
***************
*** 184,187 ****
--- 191,195 ----
              m_title = title == null ? header : title;
              m_description = descript;
+             m_keywords = keywords;
              m_header = header;
              m_body = body;
***************
*** 195,199 ****
  	 * Get page body.
  	 *
! 	 * @return page body for item
  	 */
  	 
--- 203,207 ----
  	 * Get page body.
  	 *
! 	 * @return page body
  	 */
  	 
***************
*** 205,209 ****
  	 * Get page header.
  	 *
! 	 * @return page header for item
  	 */
  	 
--- 213,217 ----
  	 * Get page header.
  	 *
! 	 * @return page header
  	 */
  	 
***************
*** 215,219 ****
       * Get page description.
       *
!      * @return page header for item
       */
       
--- 223,227 ----
       * Get page description.
       *
!      * @return page description
       */
       
***************
*** 222,229 ****
      }
  
  	/**
  	 * Get page title.
  	 *
! 	 * @return page title for item
  	 */
  	 
--- 230,247 ----
      }
  
+     /**
+      * Get page keywords.
+      *
+      * @return page keywords
+      */
+      
+     public String getKeywords() {
+         return m_keywords;
+     }
+ 
  	/**
  	 * Get page title.
  	 *
! 	 * @return page title
  	 */
  	 


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Jibx-cvs mailing list
Jibx-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic