Package com.jk.web.faces.config
Class JKNamespace
java.lang.Object
com.jk.web.faces.config.JKNamespace
This class represents a name space used in JSF tag mappings.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKNamespace
.JKNamespace
(String url) This method constructs a newJKNamespace
with the provided URL.JKNamespace
(String url, String prefix) This method constructs a newJKNamespace
with URL and prefix. -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
createPrefix
(String url) This method creates a prefix using the provided URL.getIndex()
// * This method retrieves the index associated with the name space.This method retrieves the letter derived from the name space prefix.This method retrieves the name space prefix.getUrl()
This method retrieves the URL associated with the name space.void
This method sets the name space prefix to the provided value.void
This method sets the URL associated with the name space to the provided value.
-
Constructor Details
-
JKNamespace
public JKNamespace()This method constructs a newJKNamespace
. -
JKNamespace
This method constructs a newJKNamespace
with the provided URL.- Parameters:
url
- Specifies the URL associated with the name space.
-
JKNamespace
This method constructs a newJKNamespace
with URL and prefix.- Parameters:
url
- Specifies the URL associated with the name space.prefix
- Specifies the XML prefix associated with the name space.
-
-
Method Details
-
createPrefix
This method creates a prefix using the provided URL.- Parameters:
url
- Specifies the URL to create a prefix with.- Returns:
- the prefix created with the provided URL.
-
getIndex
// * This method retrieves the index associated with the name space.- Returns:
- the This method constructs a new
JKNamespace
.
-
getLetter
This method retrieves the letter derived from the name space prefix.- Returns:
- the letter derived from the name space prefix.
-
getPrefix
This method retrieves the name space prefix.- Returns:
- the name space prefix.
-
getUrl
This method retrieves the URL associated with the name space.- Returns:
- the URL associated with the name space.
-
setPrefix
This method sets the name space prefix to the provided value.- Parameters:
prefix
- Specifies the new name space prefix.
-
setUrl
This method sets the URL associated with the name space to the provided value.- Parameters:
url
- Specifies the new URL associated with the name space.
-