org.codehaus.enunciate.modules.gwt
Class GWTValidator

java.lang.Object
  extended by org.codehaus.enunciate.contract.validation.BaseValidator
      extended by org.codehaus.enunciate.modules.gwt.GWTValidator
All Implemented Interfaces:
Validator

public class GWTValidator
extends BaseValidator

The validator for the gwt module.

Author:
Ryan Heaton

Constructor Summary
GWTValidator(java.lang.String gwtModuleNamespace, java.util.Set<java.lang.String> knownGwtPackages, boolean enforceNamespaceConformance, boolean enforceNoFieldAccessors, boolean generateJsonOverlays)
           
 
Method Summary
protected  boolean isGWTTransient(com.sun.mirror.declaration.Declaration declaration)
          Whether the given type declaration is GWT-transient.
protected  boolean isGWTTransient(com.sun.mirror.declaration.TypeDeclaration declaration)
          Whether the given type declaration is GWT-transient.
protected  boolean isSupported(com.sun.mirror.type.TypeMirror type)
          Whether the given type is supported.
 ValidationResult validateComplexType(ComplexTypeDefinition complexType)
           
 ValidationResult validateEndpointInterface(EndpointInterface ei)
           
 ValidationResult validateEnumType(EnumTypeDefinition enumType)
           
 ValidationResult validateSimpleType(SimpleTypeDefinition simpleType)
           
 
Methods inherited from class org.codehaus.enunciate.contract.validation.BaseValidator
validate, validateRootElement, validateRootResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTValidator

public GWTValidator(java.lang.String gwtModuleNamespace,
                    java.util.Set<java.lang.String> knownGwtPackages,
                    boolean enforceNamespaceConformance,
                    boolean enforceNoFieldAccessors,
                    boolean generateJsonOverlays)
Method Detail

validateEndpointInterface

public ValidationResult validateEndpointInterface(EndpointInterface ei)
Overrides:
validateEndpointInterface in class BaseValidator
Returns:
An empty result.

validateComplexType

public ValidationResult validateComplexType(ComplexTypeDefinition complexType)
Overrides:
validateComplexType in class BaseValidator
Returns:
An empty result.

validateSimpleType

public ValidationResult validateSimpleType(SimpleTypeDefinition simpleType)
Overrides:
validateSimpleType in class BaseValidator
Returns:
An empty result.

validateEnumType

public ValidationResult validateEnumType(EnumTypeDefinition enumType)
Overrides:
validateEnumType in class BaseValidator
Returns:
An empty result.

isSupported

protected boolean isSupported(com.sun.mirror.type.TypeMirror type)
Whether the given type is supported.

Parameters:
type - The type to test for supportability.
Returns:
Whether the given type is supported.

isGWTTransient

protected boolean isGWTTransient(com.sun.mirror.declaration.TypeDeclaration declaration)
Whether the given type declaration is GWT-transient.

Parameters:
declaration - The type declaration.
Returns:
Whether the given tyep declaration is GWT-transient.

isGWTTransient

protected boolean isGWTTransient(com.sun.mirror.declaration.Declaration declaration)
Whether the given type declaration is GWT-transient.

Parameters:
declaration - The type declaration.
Returns:
Whether the given tyep declaration is GWT-transient.