org.dspace.app.xmlui.configuration
Class Theme
java.lang.Object
org.dspace.app.xmlui.configuration.Theme
public class Theme
- extends java.lang.Object
This class represents a theme.
- Author:
- Scott Phillips
|
Constructor Summary |
Theme(java.lang.String name,
java.lang.String path,
java.lang.String id,
java.lang.String regex,
java.lang.String handle)
Create a new theme rule. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Theme
public Theme(java.lang.String name,
java.lang.String path,
java.lang.String id,
java.lang.String regex,
java.lang.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 java.lang.String getName()
- Returns:
- The unique name of this theme.
getPath
public java.lang.String getPath()
- Returns:
- The directory path to this theme.
getRegex
public java.lang.String getRegex()
- Returns:
- The regex component of this theme rule.
getPattern
public java.util.regex.Pattern getPattern()
- Returns:
- The regex component of this theme rule, compiled as a regex Pattern.
getHandle
public java.lang.String getHandle()
- Returns:
- The handle component of this theme rule.
getId
public java.lang.String getId()
- Returns:
- The theme's unique ID
Copyright © 2010 DuraSpace. All Rights Reserved.