RichFaces CDK Generator 4.2.0.CR1

org.richfaces.cdk.model.validator
Class ValidatorImpl

java.lang.Object
  extended by org.richfaces.cdk.model.validator.ValidatorImpl
All Implemented Interfaces:
ModelValidator

public class ValidatorImpl
extends Object
implements ModelValidator

Author:
asmirnov@exadel.com

Field Summary
static ClassName DEFAULT_BEHAVIOR_HANDLER
           
static ClassName DEFAULT_COMPONENT_HANDLER
           
static ClassName DEFAULT_CONVERTER_HANDLER
           
static ClassName DEFAULT_VALIDATOR_HANDLER
           
static com.google.common.collect.ImmutableSet<String> SPECIAL_PROPERTIES
           
 
Constructor Summary
ValidatorImpl(NamingConventions namingConventions, com.google.inject.Provider<SourceUtils> sourceUtilsProvider)
           
 
Method Summary
protected  void vefifyRenderer(ComponentLibrary library, RendererModel renderer)
           
 void verify(ComponentLibrary library)
          

Perform verify procedure on the library model.

protected  void verifyAttribute(PropertyBase attribute, GeneratedFacesComponent component)
           
protected  void verifyBehaviors(ComponentLibrary library)
          

Verify all behaviors in the library.

protected  void verifyComponentAttributes(ComponentLibrary library, ComponentModel component, Collection<ComponentModel> verified)
          

protected  void verifyComponents(ComponentLibrary library)
           
protected  void verifyComponentType(ComponentModel component)
          

protected  void verifyConverters(ComponentLibrary library)
           
protected  void verifyDescription(DescriptionGroup element)
           
protected  void verifyEvents(ComponentLibrary library)
           
protected  void verifyRenderers(ComponentLibrary library)
           
protected  void verifyTag(TagModel tag, FacesId id, ClassName handler)
           
protected  void verifyTaglib(ComponentLibrary library)
           
protected  boolean verifyTypes(GeneratedFacesComponent component, org.richfaces.cdk.model.validator.NamingConventionsCallback callback)
          

This method virifies type/family attributes for JSF objects ( components, renderers, validators, converters, behaviors )

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_COMPONENT_HANDLER

public static final ClassName DEFAULT_COMPONENT_HANDLER

DEFAULT_VALIDATOR_HANDLER

public static final ClassName DEFAULT_VALIDATOR_HANDLER

DEFAULT_CONVERTER_HANDLER

public static final ClassName DEFAULT_CONVERTER_HANDLER

DEFAULT_BEHAVIOR_HANDLER

public static final ClassName DEFAULT_BEHAVIOR_HANDLER

SPECIAL_PROPERTIES

public static final com.google.common.collect.ImmutableSet<String> SPECIAL_PROPERTIES
Constructor Detail

ValidatorImpl

@Inject
public ValidatorImpl(NamingConventions namingConventions,
                            com.google.inject.Provider<SourceUtils> sourceUtilsProvider)
Method Detail

verify

public void verify(ComponentLibrary library)
            throws CdkException
Description copied from interface: ModelValidator

Perform verify procedure on the library model.

Specified by:
verify in interface ModelValidator
Throws:
CdkException

verifyConverters

protected void verifyConverters(ComponentLibrary library)

verifyEvents

protected void verifyEvents(ComponentLibrary library)

verifyTaglib

protected void verifyTaglib(ComponentLibrary library)

verifyBehaviors

protected void verifyBehaviors(ComponentLibrary library)

Verify all behaviors in the library.

Parameters:
library -

verifyRenderers

protected void verifyRenderers(ComponentLibrary library)

vefifyRenderer

protected void vefifyRenderer(ComponentLibrary library,
                              RendererModel renderer)

verifyComponents

protected void verifyComponents(ComponentLibrary library)
                         throws CdkException
Throws:
CdkException

verifyComponentAttributes

protected void verifyComponentAttributes(ComponentLibrary library,
                                         ComponentModel component,
                                         Collection<ComponentModel> verified)

Parameters:
library -
component -
verified -

verifyTag

protected void verifyTag(TagModel tag,
                         FacesId id,
                         ClassName handler)

verifyComponentType

protected void verifyComponentType(ComponentModel component)
                            throws InvalidNameException

Parameters:
component -
Throws:
InvalidNameException

verifyTypes

protected boolean verifyTypes(GeneratedFacesComponent component,
                              org.richfaces.cdk.model.validator.NamingConventionsCallback callback)

This method virifies type/family attributes for JSF objects ( components, renderers, validators, converters, behaviors )

Parameters:
component - object to verify.
callback - callback to corresponding naming conventions.
Returns:

verifyAttribute

protected void verifyAttribute(PropertyBase attribute,
                               GeneratedFacesComponent component)

verifyDescription

protected void verifyDescription(DescriptionGroup element)

RichFaces CDK Generator 4.2.0.CR1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.