se.kmr.scam.web.taglib.scam
Class WriteTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byse.kmr.scam.web.taglib.common.BodyTagSupport
              extended byse.kmr.scam.web.taglib.common.BasePropertyTag
                  extended byse.kmr.scam.web.taglib.common.SimpleBasePropertyTag
                      extended byse.kmr.scam.web.taglib.scam.AclBasePropertyTag
                          extended byse.kmr.scam.web.taglib.scam.WriteTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag

public class WriteTag
extends se.kmr.scam.web.taglib.scam.AclBasePropertyTag

Exposes value(s) for ACL-write for a subject

Version:
$Revision: 1.4 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 17 april 2003

Field Summary
 
Fields inherited from class se.kmr.scam.web.taglib.common.BasePropertyTag
_currentObject, _default, _delimiter, _iterator, _lang, _maxSize, _maxSizeTot, _values, default_, delimiter_, lang_, maxSize_, maxSizeTot_
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
WriteTag()
           
 
Method Summary
 int doEndTag()
          Receives notification at end of tag.
 int doStartTag()
          Recives notification of the start of a tag.
 Property getProperty()
          Gets a property to expose.
 List getValueNodes()
          Gets the property value that the implementation represents.
 void setAll(String all)
           
 void setSome(String some)
           
 
Methods inherited from class se.kmr.scam.web.taglib.common.BasePropertyTag
doAfterBody, exposeValues, getCurrentObject, getHasMore, getLanguage, info, release, setDefault, setDelimiter, setLanguage, setMaxSize, setMaxSizeTot, toString
 
Methods inherited from class se.kmr.scam.web.taglib.common.BodyTagSupport
escape, exposeObject, exposeTag, getSubjectAsResource, getVar, printObject, removeObject, removeTag, setSubject, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

WriteTag

public WriteTag()
Method Detail

getProperty

public Property getProperty()
Gets a property to expose.

Specified by:
getProperty in class SimpleBasePropertyTag
Returns:
the property

setSome

public void setSome(String some)

setAll

public void setAll(String all)

doStartTag

public int doStartTag()
               throws JspException
Recives notification of the start of a tag. Value(s) of the tag is written to the page if a delimiter is defined. If a variable is defined, then each value is exposed in that variable in each iteration.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BasePropertyTag
Returns:
the value SKIP_BODY if the value(s) is written to the page, otherwise EVAL_BODY_INCLUDE.
Throws:
JspException - thrown in case of exception writing to the page or extracting property value.

doEndTag

public int doEndTag()
             throws JspException
Receives notification at end of tag.
If the tag has no content the values are exposed on the page.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BasePropertyTag
Returns:
the value of EVAL_PAGE
Throws:
JspException - is thrown in case of exception exposing the values

getValueNodes

public List getValueNodes()
                   throws RDFException
Gets the property value that the implementation represents.

Overrides:
getValueNodes in class SimpleBasePropertyTag
Returns:
the value object, if the property exists (of defiend language), oterwise null.
Throws:
RDFException - thrown in case of exception extracting property value


Copyright © 2003 SCAM. All Rights Reserved.