org.sf.bluprints
Class Bluprints

java.lang.Object
  extended by org.sf.bluprints.Bluprints

public class Bluprints
extends Object

This class defines all of the Bluprints loaded from the configuration file. This also stores the reload interval from the configuration file.

Author:
Brian Pontarelli

Field Summary
static String DEFAULT_NAMESPACE
           
 
Constructor Summary
Bluprints()
           
 
Method Summary
 String getNamespace()
           
 int getNumPages()
           
 Bluprint getPage(String name)
           
 String getUri()
           
 void setNamespace(String namespace)
           
 void setPages(List<Bluprint> pages)
           
 void setUri(String uri)
           
static String[] split(String name)
          Given a bluprint name i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAMESPACE

public static final String DEFAULT_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

Bluprints

public Bluprints()
Method Detail

split

public static final String[] split(String name)
Given a bluprint name i.e. foo:bar, this returns the parts, {foo, bar}. If the name is a single value i.e. bar, this returns the default namespace as the first part and the name as the second part i.e. default:bar.

Parameters:
name - The name to split.
Returns:
The parts.

getNamespace

public String getNamespace()

setNamespace

public void setNamespace(String namespace)

getUri

public String getUri()

setUri

public void setUri(String uri)

getPage

public Bluprint getPage(String name)

getNumPages

public int getNumPages()

setPages

public void setPages(List<Bluprint> pages)


"Copyright © 2002, Bluprints, Creative Commons License"