pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.map
Class Sitemap

java.lang.Object
  extended by org.torweg.pulse.site.map.Sitemap
All Implemented Interfaces:
JDOMable

@Entity
public class Sitemap
extends java.lang.Object
implements JDOMable

The base of the site's table of contents.

Version:
$Revision: 1404 $
Author:
Thomas Weber
See Also:
SitemapNode

Constructor Summary
protected Sitemap()
          Deprecated. 
  Sitemap(java.util.Locale l, SitemapNode root)
          builds a new Sitemap for the given Locale with the given SitemapNode as the root node.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          this will deserialize the state of the JDOMable as a JDOM Element.
 long getId()
          returns the primary key.
 java.util.Locale getLocale()
           
 SitemapNode getRootNode()
           
 void setLocale(java.util.Locale l)
          set the Locale of the Sitemap.
 void setRootNode(SitemapNode n)
          set the root SitemapNode of the Sitemap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sitemap

@Deprecated
protected Sitemap()
Deprecated. 

no-args constructor for HibernateTM.


Sitemap

public Sitemap(java.util.Locale l, SitemapNode root)
builds a new Sitemap for the given Locale with the given SitemapNode as the root node.

Parameters:
l - the Locale of the Sitemap
root - the root SitemapNode of the Sitemap
Method Detail

setRootNode

public final void setRootNode(SitemapNode n)
set the root SitemapNode of the Sitemap.

Parameters:
n - the root SitemapNode

getRootNode

public final SitemapNode getRootNode()
Returns:
returns the root SitemapNode of the Sitemap

setLocale

public final void setLocale(java.util.Locale l)
set the Locale of the Sitemap.

Parameters:
l - the Locale

getLocale

public final java.util.Locale getLocale()
Returns:
returns the Locale of the Sitemap

getId

public final long getId()
returns the primary key.

Returns:
returns the id of the Sitemap

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Description copied from interface: JDOMable
this will deserialize the state of the JDOMable as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the root node and the first child level of the Sitemap as an Element