org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse
Class RendererBean

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.ObjectBean
      extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.RendererBean

public class RendererBean
extends ObjectBean

RenderKitBean is a Java representation of the faces-config render-kit XML element.


Constructor Summary
RendererBean()
          Creates a new RendererBean.
 
Method Summary
 void addAttribute(AttributeBean attribute)
          Adds a attribute to this component.
 void addFacet(FacetBean facet)
          Adds a facet to this component.
 Iterator attributes()
          Returns an iterator for all attributes on this component only.
 Iterator attributes(boolean flatten)
          Returns an iterator for attributes on this component.
 Iterator facets()
          Returns an iterator for all facets on this component only.
 Iterator facets(boolean flatten)
          Returns an iterator for facets on this component.
 AttributeBean findAttribute(String attributeName)
          Returns the attribute for this attribute name.
 String findComponentClass()
          Finds the renderer-specific component class for this renderer.
 String findComponentFamilyClass()
          Finds the behavioral component class for this renderer.
 FacetBean findFacet(String facetName)
          Returns the facet for this facet name.
 String getComponentFamily()
          Returns the component family for this component.
 String getComponentType()
          Returns the component type for this component.
 String getDescription()
          Returns the description of this attribute.
 String getRendererClass()
          Returns the renderer class for this renderer.
 String getRendererSuperclass()
          Returns the renderer superclass for this component.
 String getRendererType()
          Returns the renderer type for this component.
 boolean hasAttributes()
          Returns true if this component has any attributes.
 boolean hasAttributes(boolean flatten)
          Returns true if this component or any component supertype has any attributes.
 boolean hasFacets()
          Returns true if this component has any facets.
 boolean hasFacets(boolean flatten)
          Returns true if this component or any component supertype has any facets.
 ComponentBean resolveComponentType()
          Returns the component type instance.
 void setComponentFamily(String componentFamily)
          Sets the component family for this component.
 void setComponentType(String componentType)
          Sets the component type for this component.
 void setDescription(String description)
          Sets the description of this attribute.
 void setRendererClass(String rendererClass)
          Sets the renderer class for this renderer.
 void setRendererSuperclass(String rendererSuperclass)
          Sets the renderer superclass for this renderer.
 void setRendererType(String rendererType)
          Sets the renderer type for this component.
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.ObjectBean
attach, getOwner, isModifiedSince
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererBean

public RendererBean()
Creates a new RendererBean.

Method Detail

setComponentFamily

public void setComponentFamily(String componentFamily)
Sets the component family for this component.

Parameters:
componentFamily - the component family

getComponentFamily

public String getComponentFamily()
Returns the component family for this component.

Returns:
the component family

setRendererType

public void setRendererType(String rendererType)
Sets the renderer type for this component.

Parameters:
rendererType - the renderer type

getRendererType

public String getRendererType()
Returns the renderer type for this component.

Returns:
the renderer type

setRendererClass

public void setRendererClass(String rendererClass)
Sets the renderer class for this renderer.

Parameters:
rendererClass - the renderer class

getRendererClass

public String getRendererClass()
Returns the renderer class for this renderer.

Returns:
the renderer class

setDescription

public void setDescription(String description)
Sets the description of this attribute.

Parameters:
description - the attribute description

getDescription

public String getDescription()
Returns the description of this attribute.

Returns:
the attribute description

setComponentType

public void setComponentType(String componentType)
Sets the component type for this component.

Parameters:
componentType - the component type

getComponentType

public String getComponentType()
Returns the component type for this component.

Returns:
the component type

setRendererSuperclass

public void setRendererSuperclass(String rendererSuperclass)
Sets the renderer superclass for this renderer.

Parameters:
rendererSuperclass - the renderer superclass

getRendererSuperclass

public String getRendererSuperclass()
Returns the renderer superclass for this component.

Returns:
the renderer superclass

findComponentClass

public String findComponentClass()
Finds the renderer-specific component class for this renderer.

Returns:
the renderer-specifc component class

findComponentFamilyClass

public String findComponentFamilyClass()
Finds the behavioral component class for this renderer.

Returns:
the behavioral component class

addAttribute

public void addAttribute(AttributeBean attribute)
Adds a attribute to this component.

Parameters:
attribute - the attribute to add

findAttribute

public AttributeBean findAttribute(String attributeName)
Returns the attribute for this attribute name.

Parameters:
attributeName - the attribute name to find

hasAttributes

public boolean hasAttributes()
Returns true if this component has any attributes.

Returns:
true if this component has any attributes, false otherwise

hasAttributes

public boolean hasAttributes(boolean flatten)
Returns true if this component or any component supertype has any attributes.

Returns:
true if this component or any supertype has any attributes, false otherwise

attributes

public Iterator attributes()
Returns an iterator for all attributes on this component only.

Returns:
the attribute iterator

attributes

public Iterator attributes(boolean flatten)
Returns an iterator for attributes on this component.

Parameters:
flatten - true if the iterator should be a combined list of attributes of this component and its supertype, false otherwise
Returns:
the attribute iterator

addFacet

public void addFacet(FacetBean facet)
Adds a facet to this component.

Parameters:
facet - the facet to add

findFacet

public FacetBean findFacet(String facetName)
Returns the facet for this facet name.

Parameters:
facetName - the facet name to find

hasFacets

public boolean hasFacets()
Returns true if this component has any facets.

Returns:
true if this component has any facets, false otherwise

hasFacets

public boolean hasFacets(boolean flatten)
Returns true if this component or any component supertype has any facets.

Returns:
true if this component or any supertype has any facets, false otherwise

facets

public Iterator facets()
Returns an iterator for all facets on this component only.

Returns:
the facet iterator

facets

public Iterator facets(boolean flatten)
Returns an iterator for facets on this component.

Parameters:
flatten - true if the iterator should be a combined list of facets of this component and its supertype, false otherwise
Returns:
the facet iterator

resolveComponentType

public ComponentBean resolveComponentType()
Returns the component type instance.

Returns:
the component type instance


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.