All Packages Class Hierarchy This Package Previous Next Index
Class com.sdi.wap.StaticPage
java.lang.Object
|
+----com.sdi.wap.Page
|
+----com.sdi.wap.StaticPage
- public class StaticPage
- extends Page
A concrete implementation of the AbstractState interface for
web based input modalities.
Each web page in a system is modeled inside the system as
an instance of this class. The instance's annotation variable
(inherited from StateImpl) provides web-specific details, such
as the page's url, title, anchor, etc.
-
instances
-
-
url
-
-
StaticPage(String, Page, Role, String, String)
- Constructor
-
checkUrlValidity(Site)
- Complain if any urls do not exist
-
getHref()
- Return the url
-
getRelativePath()
- Return the url
-
getRelativePath(Site)
- Return the url
-
getUrl()
- Return the url
url
private String url
instances
private static final Hashtable instances
StaticPage
public StaticPage(String identifier,
Page parent,
Role role,
String url,
String title)
- Constructor
- Parameters:
- String - identifier: the internal name of this page
- Page - parent: The parent of this page in the page hierarchy or null if none.
- Role - role: The role allowed to access this page.
- String - url: The absolute url of this page minus the servlet context
- String - title: The title of this page
checkUrlValidity
public static final void checkUrlValidity(Site site)
- Complain if any urls do not exist
getHref
public String getHref()
- Return the url
getRelativePath
public String getRelativePath()
- Return the url
getRelativePath
public String getRelativePath(Site site)
- Return the url
- Parameters:
- eter - Site site: unused in this implementation
- Overrides:
- getRelativePath in class Page
getUrl
public String getUrl()
- Return the url
All Packages Class Hierarchy This Package Previous Next Index