Class JKNamespace

java.lang.Object
com.jk.web.faces.config.JKNamespace

public class JKNamespace extends Object
This class represents a name space used in JSF tag mappings.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKNamespace

      public JKNamespace()
      This method constructs a new JKNamespace.
    • JKNamespace

      public JKNamespace(String url)
      This method constructs a new JKNamespace with the provided URL.
      Parameters:
      url - Specifies the URL associated with the name space.
    • JKNamespace

      public JKNamespace(String url, String prefix)
      This method constructs a new JKNamespace 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

      protected static String createPrefix(String url)
      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

      public Integer getIndex()
      // * This method retrieves the index associated with the name space.
      Returns:
      the This method constructs a new JKNamespace.
    • getLetter

      public String getLetter()
      This method retrieves the letter derived from the name space prefix.
      Returns:
      the letter derived from the name space prefix.
    • getPrefix

      public String getPrefix()
      This method retrieves the name space prefix.
      Returns:
      the name space prefix.
    • getUrl

      public String getUrl()
      This method retrieves the URL associated with the name space.
      Returns:
      the URL associated with the name space.
    • setPrefix

      public void setPrefix(String prefix)
      This method sets the name space prefix to the provided value.
      Parameters:
      prefix - Specifies the new name space prefix.
    • setUrl

      public void setUrl(String url)
      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.