public class ValidatorImpl extends Object implements ModelValidator
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ValidatorImpl(NamingConventions namingConventions,
com.google.inject.Provider<SourceUtils> sourceUtilsProvider) |
| Modifier and Type | Method and Description |
|---|---|
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,
NamingConventionsCallback callback)
This method virifies type/family attributes for JSF objects ( components, renderers, validators, converters, behaviors ) |
public static final ClassName DEFAULT_COMPONENT_HANDLER
public static final ClassName DEFAULT_VALIDATOR_HANDLER
public static final ClassName DEFAULT_CONVERTER_HANDLER
public static final ClassName DEFAULT_BEHAVIOR_HANDLER
public static final com.google.common.collect.ImmutableSet<String> SPECIAL_PROPERTIES
@Inject public ValidatorImpl(NamingConventions namingConventions, com.google.inject.Provider<SourceUtils> sourceUtilsProvider)
public void verify(ComponentLibrary library) throws CdkException
ModelValidatorPerform verify procedure on the library model.
verify in interface ModelValidatorCdkExceptionprotected void verifyConverters(ComponentLibrary library)
protected void verifyEvents(ComponentLibrary library)
protected void verifyTaglib(ComponentLibrary library)
protected void verifyBehaviors(ComponentLibrary library)
Verify all behaviors in the library.
library - protected void verifyRenderers(ComponentLibrary library)
protected void vefifyRenderer(ComponentLibrary library, RendererModel renderer)
protected void verifyComponents(ComponentLibrary library) throws CdkException
CdkExceptionprotected void verifyComponentAttributes(ComponentLibrary library, ComponentModel component, Collection<ComponentModel> verified)
library - component - verified - protected void verifyComponentType(ComponentModel component) throws InvalidNameException
component - InvalidNameExceptionprotected boolean verifyTypes(GeneratedFacesComponent component, NamingConventionsCallback callback)
This method virifies type/family attributes for JSF objects ( components, renderers, validators, converters, behaviors )
component - object to verify.callback - callback to corresponding naming conventions.protected void verifyAttribute(PropertyBase attribute, GeneratedFacesComponent component)
protected void verifyDescription(DescriptionGroup element)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.