org.codehaus.enunciate.modules.amf
Class AMFValidator

java.lang.Object
  extended by org.codehaus.enunciate.contract.validation.BaseValidator
      extended by org.codehaus.enunciate.modules.amf.AMFValidator
All Implemented Interfaces:
ConfigurableRules, Validator

public class AMFValidator
extends BaseValidator
implements ConfigurableRules

The validator for the amf module.

Author:
Ryan Heaton

Constructor Summary
AMFValidator()
           
 
Method Summary
 void disableRules(java.util.Set<java.lang.String> ruleIds)
          Disables the specified rules.
protected  boolean isAMFTransient(com.sun.mirror.declaration.Declaration declaration)
          Whether the given type declaration is AMF-transient.
protected  boolean isAMFTransient(com.sun.mirror.declaration.TypeDeclaration declaration)
          Whether the given type declaration is AMF-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

AMFValidator

public AMFValidator()
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.

isAMFTransient

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

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

isAMFTransient

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

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

disableRules

public void disableRules(java.util.Set<java.lang.String> ruleIds)
Disables the specified rules.

Specified by:
disableRules in interface ConfigurableRules
Parameters:
ruleIds - The ids of the rules to disable.