public class DetailLocation extends DefaultLocation
DetailSubApp
.
Extends the Default Location by adding fields for :
DetailView.ViewType
(viewType)
appType:appName:subAppId;some/node/path:viewType:version
LOCATION_TYPE_APP, LOCATION_TYPE_SHELL_APP, NOWHERE
Constructor and Description |
---|
DetailLocation(String appName,
String subAppId,
DetailView.ViewType viewType,
String nodePath,
String version) |
DetailLocation(String appName,
String subAppId,
String parameter) |
Modifier and Type | Method and Description |
---|---|
String |
getNodePath() |
String |
getVersion() |
DetailView.ViewType |
getViewType() |
boolean |
hasVersion() |
void |
setVersion(String version) |
void |
setViewType(DetailView.ViewType viewType) |
void |
updateNodePath(String newNodePath) |
protected void |
updateParameter() |
void |
updateVersion(String newVersion) |
void |
updateViewtype(DetailView.ViewType newViewType) |
static DetailLocation |
wrap(Location location) |
decodeFragment, decodeFragment, equals, extractAppName, extractAppType, extractParameter, extractSubAppId, getAppName, getAppType, getParameter, getSubAppId, hashCode, setAppName, setAppType, setParameter, setSubAppId, toString
public DetailLocation(String appName, String subAppId, DetailView.ViewType viewType, String nodePath, String version)
public String getNodePath()
public DetailView.ViewType getViewType()
public void setViewType(DetailView.ViewType viewType)
public String getVersion()
public void setVersion(String version)
public boolean hasVersion()
protected void updateParameter()
public static DetailLocation wrap(Location location)
public void updateNodePath(String newNodePath)
public void updateViewtype(DetailView.ViewType newViewType)
public void updateVersion(String newVersion)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.