se.kmr.scam.web.taglib.lom
Class TitleTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byse.kmr.scam.web.taglib.lom.BasePropertyTag
          extended byse.kmr.scam.web.taglib.lom.TitleTag
All Implemented Interfaces:
IterationTag, Serializable, Tag

public class TitleTag
extends se.kmr.scam.web.taglib.lom.BasePropertyTag

Exposes the value of the Title property for a given Resource.

Version:
$Revision: 1.7 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 23 oktober 2002

Field Summary
protected  org.apache.log4j.Logger _log
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TitleTag()
          Constructor for the TitleTag object
 
Method Summary
 int doStartTag()
           
protected  void exposeObject(RDFNode object)
          Expose the object .
protected  String getLanguage()
          Gets the value of the language attribute.
protected  Resource getSubject()
          Gets the resource associated with the subject attribute value.
 void setLanguage(String lang)
          Sets the language attribute of the BaseTag object
 void setSubject(String subjectRef)
          Sets the resource attribute of the BaseTag object
 void setVar(String var)
          Sets the var attribute of the BaseTag object
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected org.apache.log4j.Logger _log
Constructor Detail

TitleTag

public TitleTag()
Constructor for the TitleTag object

Method Detail

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

setSubject

public void setSubject(String subjectRef)
Sets the resource attribute of the BaseTag object

Parameters:
subjectRef - The new subject value

getSubject

protected Resource getSubject()
                       throws JspException
Gets the resource associated with the subject attribute value.

Returns:
The resource associated with the subject attribute value.
Throws:
JspException - thrown in case of exception evaluating the subject attribute value

setVar

public void setVar(String var)
Sets the var attribute of the BaseTag object

Parameters:
var - The new var value

setLanguage

public void setLanguage(String lang)
Sets the language attribute of the BaseTag object

Parameters:
lang - The new lang value

getLanguage

protected String getLanguage()
                      throws JspException
Gets the value of the language attribute.

Returns:
If the language attribute is an expression then the result from evaluating the expression is return otherwise the value of the language attribute.
Throws:
JspException - thrown in case of exception evaluating the subject attribute value

exposeObject

protected void exposeObject(RDFNode object)
                     throws JspException
Expose the object . If the var attribute has been defined will the object be exposed in page scope under this name, otherwise will the object be printed on the page.

Parameters:
object - The new object value
Throws:
JspException - thrown in case of exception printing the object on the page.


Copyright © 2003 SCAM. All Rights Reserved.