Class JKTagMapping

java.lang.Object
com.jk.web.faces.config.JKTagMapping
All Implemented Interfaces:
Comparable<JKTagMapping>

public class JKTagMapping extends Object implements Comparable<JKTagMapping>
This class represents a mapping between source and target XML tags in JSF tag mappings.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKTagMapping

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

      public JKTagMapping(String sourceQName, String targetQName, JKNamespace namespace)
      This method constructs a new JKTagMapping with the provided parameters.
      Parameters:
      sourceQName - Specifies the source XML tag name.
      targetQName - Specifies the target XML tag name.
      namespace - Specifies the name space associated with the tag mappings.
  • Method Details

    • compareTo

      public int compareTo(JKTagMapping o)
      Specified by:
      compareTo in interface Comparable<JKTagMapping>
    • getAttributeName

      public String getAttributeName()
      This method gets the name of the attribute being mapped.
      Returns:
      the name of the attribute being mapped.
    • getAttributeValue

      public String getAttributeValue()
      This method gets the value of the attribute being mapped.
      Returns:
      the value of the attributes being mapped.
    • getNamespace

      public JKNamespace getNamespace()
      This method gets the name space associated with the tag mapping.
      Returns:
      the name space associated with the tag mapping.
    • getNameSpaceLetter

      public String getNameSpaceLetter()
      This method gets the name space letter.
      Returns:
      the name space letter.
    • getSourceQName

      public String getSourceQName()
      This method gets the source XML tag name.
      Returns:
      the source XML tag name.
    • getTargetLocalName

      public String getTargetLocalName()
      This method gets the target local name.
      Returns:
      the target local name.
    • getTargetQName

      public String getTargetQName()
      This method gets the target XML tag name.
      Returns:
      the target XML tag name.
    • isAuto

      public boolean isAuto()
      This method checks whether this tag mapping is automatically loaded from the JSFcontainer at runtime.
      Returns:
      true, if it is automatically loaded, false otherwise.
    • setAttributeName

      public void setAttributeName(String attributeName)
      This method sets the name of the attribute being mapped to the provided value.
      Parameters:
      attributeName - Specifies the new name of the attribute being mapped.
    • setAttributeValue

      public void setAttributeValue(String attributeValue)
      This method sets the value of the attribute being mapped to the provided value.
      Parameters:
      attributeValue - Specifies the new value of the attribute being mapped.
    • setSourceQName

      public void setSourceQName(String sourceTag)
      This method sets the source XML tag name to the provided value.
      Parameters:
      sourceTag - Specifies the new source XML tag name.
    • setTargetQName

      public void setTargetQName(String targetTag)
      This method sets the target XML tag name to the provided value.
      Parameters:
      targetTag - Specifies the new target XML tag name.