org.dspace.app.xmlui.configuration
Class Theme
java.lang.Object
org.dspace.app.xmlui.configuration.Theme
public class Theme
- extends Object
This class represents a theme.
- Author:
- Scott Phillips
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 themepath - The directory path to the themeid - The unique ID of the themeregex - The regular exrpession for this theme rulehandle - handle expression for this theme rule
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 © 2012 DuraSpace. All Rights Reserved.