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

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.FacesConfigBean

public class FacesConfigBean
extends ObjectBean

FacesConfigBean is a Java representation of the faces-config XML element.


Constructor Summary
FacesConfigBean()
           
 
Method Summary
 void addComponent(ComponentBean component)
          Adds a component to this faces config document.
 void addConverter(ConverterBean converter)
          Adds a converter to this faces config document.
 void addEvent(EventBean event)
          Adds an event to this faces config document.
 void addRenderKit(RenderKitBean renderKit)
          Adds a render kit to this faces config document.
 void addValidator(ValidatorBean validator)
          Adds a validator to this faces config document.
 Iterator<ComponentBean> components()
          Returns an iterator for all components in this faces config.
 Iterator<ConverterBean> converters()
          Returns an iterator for all converters in this faces config.
 Iterator<EventBean> events()
          Returns an iterator for all events in this faces config.
 ComponentBean findComponent(String componentType)
          Returns the component for this component type.
 ConverterBean findConverter(String converterId)
          Returns the converter for this converter type.
 EventBean findEvent(String eventType)
          Returns the event for this event type.
 RenderKitBean findRenderKit(String renderKitId)
          Returns the render kit for this render kit id.
 ValidatorBean findValidator(String validatorId)
          Returns the validator for this validator type.
 URL getCurrentResource()
           
 boolean hasComponents()
          Returns true if this faces config has any components.
 boolean hasConverters()
          Returns true if this faces config has any converters.
 boolean hasEvents()
          Returns true if this faces config has any events.
 boolean hasRenderKits()
          Returns true if this faces config has any render kits.
 boolean hasValidators()
          Returns true if this faces config has any validators.
 void performPostProcessing()
          Performs any processing of the meta-data that must be performed after all of the meta-data has been collected.
 Iterator renderKits()
          Returns an iterator for all render kits in this faces config.
 URL setCurrentResource(URL resource)
           
 Iterator<ValidatorBean> validators()
          Returns an iterator for all validators in this faces config.
 
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

FacesConfigBean

public FacesConfigBean()
Method Detail

addConverter

public void addConverter(ConverterBean converter)
Adds a converter to this faces config document.

Parameters:
converter - the converter to add

findConverter

public ConverterBean findConverter(String converterId)
Returns the converter for this converter type.

Parameters:
converterId - the converter type to find

hasConverters

public boolean hasConverters()
Returns true if this faces config has any converters.

Returns:
true if this faces config has any converters, otherwise false

converters

public Iterator<ConverterBean> converters()
Returns an iterator for all converters in this faces config.

Returns:
the converter iterator

addValidator

public void addValidator(ValidatorBean validator)
Adds a validator to this faces config document.

Parameters:
validator - the validator to add

findValidator

public ValidatorBean findValidator(String validatorId)
Returns the validator for this validator type.

Parameters:
validatorId - the validator type to find

hasValidators

public boolean hasValidators()
Returns true if this faces config has any validators.

Returns:
true if this faces config has any validators, otherwise false

validators

public Iterator<ValidatorBean> validators()
Returns an iterator for all validators in this faces config.

Returns:
the validator iterator

addComponent

public void addComponent(ComponentBean component)
Adds a component to this faces config document.

Parameters:
component - the component to add

findComponent

public ComponentBean findComponent(String componentType)
Returns the component for this component type.

Parameters:
componentType - the component type to find

hasComponents

public boolean hasComponents()
Returns true if this faces config has any components.

Returns:
true if this faces config has any components, otherwise false

components

public Iterator<ComponentBean> components()
Returns an iterator for all components in this faces config.

Returns:
the component iterator

addEvent

public void addEvent(EventBean event)
Adds an event to this faces config document.

Parameters:
event - the event to add

findEvent

public EventBean findEvent(String eventType)
Returns the event for this event type.

Parameters:
eventType - the event type to find

hasEvents

public boolean hasEvents()
Returns true if this faces config has any events.

Returns:
true if this faces config has any events, otherwise false

events

public Iterator<EventBean> events()
Returns an iterator for all events in this faces config.

Returns:
the event iterator

addRenderKit

public void addRenderKit(RenderKitBean renderKit)
Adds a render kit to this faces config document.

Parameters:
renderKit - the render kit to add

findRenderKit

public RenderKitBean findRenderKit(String renderKitId)
Returns the render kit for this render kit id.

Parameters:
renderKitId - the render kit id to find

hasRenderKits

public boolean hasRenderKits()
Returns true if this faces config has any render kits.

Returns:
true if this faces config has any render kits, otherwise false

renderKits

public Iterator renderKits()
Returns an iterator for all render kits in this faces config.

Returns:
the render kit iterator

getCurrentResource

public URL getCurrentResource()

setCurrentResource

public URL setCurrentResource(URL resource)

performPostProcessing

public void performPostProcessing()
Performs any processing of the meta-data that must be performed after all of the meta-data has been collected. This includes processing on super-class data and other inter-related computations that cannot be done as the data is being parsed.



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