org.dspace.app.xmlui.configuration
Class Theme

java.lang.Object
  extended by org.dspace.app.xmlui.configuration.Theme

public class Theme
extends Object

This class represents a theme.

Author:
Scott Phillips

Constructor Summary
Theme(String name, String path, String id, String regex, String handle)
          Create a new theme rule.
 
Method Summary
 String getHandle()
           
 String getId()
           
 String getName()
           
 String getPath()
           
 Pattern getPattern()
           
 String getRegex()
           
 boolean hasHandle()
           
 boolean hasRegex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theme

public Theme(String name,
             String path,
             String id,
             String regex,
             String handle)
Create a new theme rule.

Parameters:
name - A unique name of the theme
path - The directory path to the theme
id - The unique ID of the theme
regex - The regular exrpession for this theme rule
handle - handle expression for this theme rule
Method Detail

hasHandle

public boolean hasHandle()
Returns:
If there is a handle component to this theme rule.

hasRegex

public boolean hasRegex()
Returns:
If there is a regex component to this theme rule.

getName

public String getName()
Returns:
The unique name of this theme.

getPath

public String getPath()
Returns:
The directory path to this theme.

getRegex

public String getRegex()
Returns:
The regex component of this theme rule.

getPattern

public Pattern getPattern()
Returns:
The regex component of this theme rule, compiled as a regex Pattern.

getHandle

public String getHandle()
Returns:
The handle component of this theme rule.

getId

public String getId()
Returns:
The theme's unique ID


Copyright © 2011 DuraSpace. All Rights Reserved.