public class Action extends Object
An Action represents a decision that an end user might choose to make when interacting with an Assembler application.
Examples include:
LinkBuilder
An Action contains several pieces of information. Which of these are used to produce links is determined by the Assembler application. Depending on the context within which the Action is produced and the manner in which it will be used, any of them may be null.
Constructor and Description |
---|
Action()
Default constructor.
|
Action(String label)
Constructs an
Action with the specified label. |
Action(String label,
String siteRootPath,
String contentPath,
SiteState siteState)
Constructs an
Action with the specified label, site root path and content path. |
Modifier and Type | Method and Description |
---|---|
String |
getContentPath() |
String |
getLabel() |
String |
getSiteRootPath() |
SiteState |
getSiteState() |
void |
setContentPath(String contentPath)
Sets the path that identifies the content associated with this
Action within its containing site.
|
void |
setLabel(String label)
Sets the user-visible text for the application to use when constructing
a link for this Action.
|
void |
setSiteRootPath(String siteRootPath)
Sets the path that identifies the site root associated with this
Action . |
void |
setSiteState(SiteState siteState)
Sets the site state of this
Action |
public Action()
public Action(String label)
Action
with the specified label.label
- the labelpublic SiteState getSiteState()
Action
public void setSiteState(SiteState siteState)
Action
public String getSiteRootPath()
Action
.public void setSiteRootPath(String siteRootPath)
Action
.siteRootPath
- the site root pathpublic String getContentPath()
Action
.public void setContentPath(String contentPath)
contentPath
- the content pathpublic String getLabel()
Action
.public void setLabel(String label)
label
- the user-visible textCopyright © 2014, Oracle and/or its affiliates. All rights reserved.