org.ajax4jsf.renderkit.compiler
Class AttributeElement

java.lang.Object
  extended by org.ajax4jsf.renderkit.compiler.ElementBase
      extended by org.ajax4jsf.renderkit.compiler.AttributeElement
All Implemented Interfaces:
PreparedTemplate

public class AttributeElement
extends ElementBase

Version:
$Revision: 1.1.2.1 $ $Date: 2007/01/09 18:57:44 $
Author:
asmirnov@exadel.com (latest modification by $Author: alexsmirnov $)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ajax4jsf.renderkit.compiler.ElementBase
ElementBase.SkinValueGetter, ElementBase.ValueGetter
 
Field Summary
 
Fields inherited from class org.ajax4jsf.renderkit.compiler.ElementBase
valueGetter
 
Constructor Summary
AttributeElement()
           
 
Method Summary
 void encode(TemplateContext context)
           
 void encode(TemplateContext context, java.lang.String breakPoint)
           
protected  java.lang.Class[] getAllowedClasses()
           
 java.lang.String getName()
           
 java.lang.String getTag()
           
 boolean isMandatory()
           
 void setMandatory(boolean notNull)
           
 void setMantadory(boolean notNull)
          Alias ( due to typo error ) for Mandatory property.
 void setName(java.lang.String name)
           
 void setParent(PreparedTemplate parent)
          Set parent element in compiled tree for template.
 
Methods inherited from class org.ajax4jsf.renderkit.compiler.ElementBase
addBreakPoint, addChild, encode, encodeBegin, encodeEnd, getChildren, getDefault, getString, getValue, isValueReference, setBaseSkin, setCall, setContext, setDefault, setProperty, setSkin, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeElement

public AttributeElement()
Method Detail

encode

public void encode(TemplateContext context)
            throws java.io.IOException
Specified by:
encode in interface PreparedTemplate
Overrides:
encode in class ElementBase
Throws:
java.io.IOException

encode

public void encode(TemplateContext context,
                   java.lang.String breakPoint)
            throws java.io.IOException
Specified by:
encode in interface PreparedTemplate
Overrides:
encode in class ElementBase
Throws:
java.io.IOException

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

isMandatory

public boolean isMandatory()
Returns:
Returns the notNull.

setMantadory

public void setMantadory(boolean notNull)
Alias ( due to typo error ) for Mandatory property.

Parameters:
notNull - The notNull to set.

setMandatory

public void setMandatory(boolean notNull)
Parameters:
notNull - The notNull to set.

getTag

public java.lang.String getTag()
Returns:
tag name for element.

setParent

public void setParent(PreparedTemplate parent)
               throws org.xml.sax.SAXException
Description copied from interface: PreparedTemplate
Set parent element in compiled tree for template.

Specified by:
setParent in interface PreparedTemplate
Overrides:
setParent in class ElementBase
Throws:
org.xml.sax.SAXException

getAllowedClasses

protected java.lang.Class[] getAllowedClasses()
Overrides:
getAllowedClasses in class ElementBase
Returns:
array of classes, allowed as childs for this element.


Copyright © 2009. All Rights Reserved.