com.ibm.xsp.resource
Class MetaDataResource

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

public class MetaDataResource
extends AbstractResource
implements EncodableObject, FacesAttrsObject

Corresponds to the xp:metaData tag which defines a resource that includes a meta-data entry in the head


Field Summary
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class com.ibm.xsp.resource.AbstractResource
FAMILY
 
Constructor Summary
MetaDataResource()
          Default Constructor
 
Method Summary
 void addAttr(Attr attr)
          Add an Attr, to appear as an attribute in the HTML output of this control or object tag.
 java.util.List<Attr> getAttrs()
          The extra attributes to be output on the base element at the root of this control or object tag.
 java.lang.String getContent()
          The HTML "meta" tag "content" attribute.
 java.lang.String getDir()
          Returns the meta tag dir
 java.lang.String getHttpEquiv()
          Returns the meta tag httpEquiv
 java.lang.String getLang()
          Returns the meta tag lang
 java.lang.String getName()
          Returns the META tag name.
 java.lang.String getScheme()
          Returns the meta tag scheme
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setAttrs(java.util.List<Attr> attrs)
          This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list.
 void setContent(java.lang.String content)
          Sets the META tag content
 void setDir(java.lang.String dir)
          Sets the META tag dir
 void setHttpEquiv(java.lang.String httpEquiv)
          Sets the httpEquiv
 void setLang(java.lang.String lang)
          Sets the META tag lang
 void setName(java.lang.String name)
          Sets the META tag name to set.
 void setScheme(java.lang.String scheme)
          Sets the META tag scheme
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.xsp.resource.AbstractResource
encodeObject, equals, 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, 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

MetaDataResource

public MetaDataResource()
Default Constructor

Method Detail

getName

public java.lang.String getName()
Returns the META tag name.

Returns:
Returns the META tag name.

setName

public void setName(java.lang.String name)
Sets the META tag name to set.

Parameters:
name -

getContent

public java.lang.String getContent()
The HTML "meta" tag "content" attribute. (Note, this method is getContent, different to the superclass AbstractResource#getContents().)

Returns:
Returns the meta tag content attribute

setContent

public void setContent(java.lang.String content)
Sets the META tag content

Parameters:
content -

getScheme

public java.lang.String getScheme()
Returns the meta tag scheme

Returns:
scheme

setScheme

public void setScheme(java.lang.String scheme)
Sets the META tag scheme

Parameters:
scheme -

getHttpEquiv

public java.lang.String getHttpEquiv()
Returns the meta tag httpEquiv

Returns:
httpEquiv

setHttpEquiv

public void setHttpEquiv(java.lang.String httpEquiv)
Sets the httpEquiv

Parameters:
httpEquiv -

getLang

public java.lang.String getLang()
Returns the meta tag lang

Returns:
lang

setLang

public void setLang(java.lang.String lang)
Sets the META tag lang

Parameters:
lang -

getDir

public java.lang.String getDir()
Returns the meta tag dir

Returns:
dir

setDir

public void setDir(java.lang.String dir)
Sets the META tag dir

Parameters:
dir -

getAttrs

public java.util.List<Attr> getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. This should only be used when none of the properties in the All Properties pane correspond to the desired attribute. This may return null. The addAttr(Attr) method should be used to add an Attr.

Specified by:
getAttrs in interface FacesAttrsObject

addAttr

public void addAttr(Attr attr)
Add an Attr, to appear as an attribute in the HTML output of this control or object tag.

Specified by:
addAttr in interface FacesAttrsObject
Parameters:
action -

setAttrs

public void setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list.


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