com.ibm.xsp.resource
Class GenericHeadResource

java.lang.Object
  extended by com.ibm.xsp.complex.ValueBindingObjectImpl
      extended by com.ibm.xsp.resource.AbstractResource
          extended by com.ibm.xsp.resource.GenericHeadResource
All Implemented Interfaces:
ComponentBindingObject, EncodableObject, ValueBindingObject, Resource, javax.faces.component.StateHolder

public class GenericHeadResource
extends AbstractResource
implements EncodableObject

Corresponds to the xp:headTag tag and is a generic resource for inserting a tag in the HEAD part of the page.


Field Summary
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class com.ibm.xsp.resource.AbstractResource
FAMILY
 
Constructor Summary
GenericHeadResource()
          Default Constructor
 
Method Summary
 void addAttribute(Parameter attribute)
          Add an attribute
 java.util.List<Parameter> getAttributes()
          Return the list of attribute
 java.lang.String getTagName()
          Returns the tagName attribute.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTagName(java.lang.String tagName)
          The tagName value to set.
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.xsp.resource.AbstractResource
encodeObject, getFamily, getRendererType, getServerResourceContents, getUniqueId, isRendered, loadContents, setRendered, setRendererType
 
Methods inherited from class com.ibm.xsp.complex.ValueBindingObjectImpl
getComponent, getFacesContext, getValueBinding, isTransient, setComponent, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.xsp.complex.EncodableObject
encodeObject
 

Field Detail

RENDERER_TYPE

public static final java.lang.String RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

GenericHeadResource

public GenericHeadResource()
Default Constructor

Method Detail

getTagName

public java.lang.String getTagName()
Returns the tagName attribute.

Returns:
tagName

setTagName

public void setTagName(java.lang.String tagName)
The tagName value to set.

Parameters:
tagName -

addAttribute

public void addAttribute(Parameter attribute)
Add an attribute

Parameters:
attribute - the attribute to add to the list

getAttributes

public java.util.List<Parameter> getAttributes()
Return the list of attribute


saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class AbstractResource

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class AbstractResource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object