se.kmr.scam.web.taglib.common
Class SimpleBasePropertyTag

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
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag
Direct Known Subclasses:
se.kmr.scam.web.taglib.scam.AclBasePropertyTag, AuthorTag, BodyTag, CreatedTag, CreatedTag, CreatorTag, DescriptionTag, DisplayNameTag, EMAILTag, ExtentTag, FNTag, FormatTag, IdentifierTag, InModelTag, LanguageTag, ModifiedTag, NICKNAMETag, OwnerTag, PasswordTag, PHOTOTag, RoleTag, ROLETag, SourceTag, SubjectTag, TitleTag, TITLETag, TypeTag, TypeTag, URLTag, ValidTag

public abstract class SimpleBasePropertyTag
extends BasePropertyTag

An abstract class for exposing the value of a property. The property is directly associated to the given subject.

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

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
SimpleBasePropertyTag()
           
 
Method Summary
abstract  Property getProperty()
          Gets a property to expose.
 List getValueNodes()
          Gets a property value for a resource.
 
Methods inherited from class se.kmr.scam.web.taglib.common.BasePropertyTag
doAfterBody, doEndTag, doStartTag, 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

SimpleBasePropertyTag

public SimpleBasePropertyTag()
Method Detail

getProperty

public abstract Property getProperty()
Gets a property to expose.

Returns:
the property

getValueNodes

public List getValueNodes()
                   throws RDFException
Gets a property value for a resource. If the resource has multiple values for the property (and language) it is undefined which value is returned. If a language is provied a value is returned only if the property exists and is of the same langugae.

Specified by:
getValueNodes in class BasePropertyTag
Returns:
the node representing the property value.
Throws:
RDFException - thrown in case of exception extracting the property value


Copyright © 2003 SCAM. All Rights Reserved.