Package com.jk.web.faces.config
Class JKTagMapping
java.lang.Object
com.jk.web.faces.config.JKTagMapping
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionThis method constructs a newJKTagMapping
.JKTagMapping
(String sourceQName, String targetQName, JKNamespace namespace) This method constructs a newJKTagMapping
with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionint
This method gets the name of the attribute being mapped.This method gets the value of the attribute being mapped.This method gets the name space associated with the tag mapping.This method gets the name space letter.This method gets the source XML tag name.This method gets the target local name.This method gets the target XML tag name.boolean
isAuto()
This method checks whether this tag mapping is automatically loaded from the JSFcontainer at runtime.void
setAttributeName
(String attributeName) This method sets the name of the attribute being mapped to the provided value.void
setAttributeValue
(String attributeValue) This method sets the value of the attribute being mapped to the provided value.void
setSourceQName
(String sourceTag) This method sets the source XML tag name to the provided value.void
setTargetQName
(String targetTag) This method sets the target XML tag name to the provided value.
-
Constructor Details
-
JKTagMapping
public JKTagMapping()This method constructs a newJKTagMapping
. -
JKTagMapping
This method constructs a newJKTagMapping
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
- Specified by:
compareTo
in interfaceComparable<JKTagMapping>
-
getAttributeName
This method gets the name of the attribute being mapped.- Returns:
- the name of the attribute being mapped.
-
getAttributeValue
This method gets the value of the attribute being mapped.- Returns:
- the value of the attributes being mapped.
-
getNamespace
This method gets the name space associated with the tag mapping.- Returns:
- the name space associated with the tag mapping.
-
getNameSpaceLetter
This method gets the name space letter.- Returns:
- the name space letter.
-
getSourceQName
This method gets the source XML tag name.- Returns:
- the source XML tag name.
-
getTargetLocalName
This method gets the target local name.- Returns:
- the target local name.
-
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
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
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
This method sets the source XML tag name to the provided value.- Parameters:
sourceTag
- Specifies the new source XML tag name.
-
setTargetQName
This method sets the target XML tag name to the provided value.- Parameters:
targetTag
- Specifies the new target XML tag name.
-