public class ResourceName extends Object
/workspace0/1/23/skin//DEFAULT_CSS.
Workspace, section and panel are optional, sometimes the resource can be deducted without them. If they are present, the categoryId parameter acts as a default value in case the category cannot be deducted from them:
////skin/windows_xp/DEFAULT_CSS
is valid, and will attempt to retrieve the default css for the windows_xp skin in the system. If the categoryId parameter is not specified, it will be determined by the workspace, section and panel parameters. Examples:
Modifier and Type | Field and Description |
---|---|
protected static MessageFormat |
msgf |
static String |
NAME_FORMAT |
static String |
SEPARATOR |
static boolean |
useBase64Names |
Constructor and Description |
---|
ResourceName() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
String |
getCategory() |
String |
getCategoryId() |
static ResourceName |
getInstance(String resName) |
static String |
getName(String workspaceId,
Long sectionId,
Long panelId,
String category,
String categoryId,
String resourceId) |
Long |
getPanelId() |
String |
getPortableResourceName()
The resource portable name (without workspace info)
|
Class |
getResourceClass() |
String |
getResourceId() |
Long |
getSectionId() |
String |
getWorkspaceId() |
String |
toString() |
public static final String SEPARATOR
public static final String NAME_FORMAT
protected static final MessageFormat msgf
public static final boolean useBase64Names
public static ResourceName getInstance(String resName)
public static String getName(String workspaceId, Long sectionId, Long panelId, String category, String categoryId, String resourceId)
public String getWorkspaceId()
public Long getSectionId()
public Long getPanelId()
public String getCategoryId()
public String getCategory()
public String getResourceId()
public int compareTo(Object o)
public Class getResourceClass()
public String getPortableResourceName()
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.