|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.contract.validation.BaseValidator
org.codehaus.enunciate.contract.validation.DefaultValidator
public class DefaultValidator
Default validator.
| Constructor Summary | |
|---|---|
DefaultValidator()
|
|
| Method Summary | |
|---|---|
void |
disableRules(java.util.Set<java.lang.String> ruleIds)
Disable the given set of rules. |
protected boolean |
isAssignable(com.sun.mirror.declaration.TypeDeclaration declaration1,
com.sun.mirror.declaration.TypeDeclaration declaration2)
Whether declaration1 is assignable to declaration2. |
protected boolean |
isConvertableToStringByJAXRS(com.sun.mirror.type.TypeMirror type)
Whether the specified type is convertable from a String according to JAX-RS. |
protected boolean |
isString(com.sun.mirror.type.TypeMirror type)
Whether the type is a string. |
protected boolean |
isSuppliableByJAXRS(com.sun.mirror.declaration.Declaration declaration)
Whether the specified declaration is suppliable by JAX-RS. |
protected boolean |
isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
Whether a declaration is xml transient. |
ValidationResult |
validate(EnunciateFreemarkerModel model)
Validate the model. |
ValidationResult |
validateAccessor(Accessor accessor)
|
ValidationResult |
validateAttribute(Attribute attribute)
|
ValidationResult |
validateComplexType(ComplexTypeDefinition complexType)
|
ValidationResult |
validateElement(Element element)
|
ValidationResult |
validateElementRef(ElementRef elementRef)
|
ValidationResult |
validateEndpointImplementation(EndpointImplementation impl)
|
ValidationResult |
validateEndpointInterface(EndpointInterface ei)
|
ValidationResult |
validateEnumType(EnumTypeDefinition enumType)
|
ValidationResult |
validatePackage(Schema schema)
|
ValidationResult |
validateRootElement(RootElementDeclaration rootElementDeclaration)
|
ValidationResult |
validateRootResources(java.util.List<RootResource> rootResources)
|
ValidationResult |
validateSimpleType(SimpleTypeDefinition simpleType)
|
ValidationResult |
validateTypeDefinition(TypeDefinition typeDef)
Validation logic common to all type definitions. |
ValidationResult |
validateValue(Value value)
|
ValidationResult |
validateWebMethod(WebMethod webMethod)
|
ValidationResult |
validateXmlID(Accessor accessor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultValidator()
| Method Detail |
|---|
public void disableRules(java.util.Set<java.lang.String> ruleIds)
ConfigurableRules
disableRules in interface ConfigurableRulesruleIds - The ids of the rules to disable.public ValidationResult validate(EnunciateFreemarkerModel model)
Validator
validate in interface Validatorvalidate in class BaseValidatormodel - The model to validate.
public ValidationResult validateEndpointInterface(EndpointInterface ei)
validateEndpointInterface in class BaseValidatorpublic ValidationResult validateEndpointImplementation(EndpointImplementation impl)
protected boolean isAssignable(com.sun.mirror.declaration.TypeDeclaration declaration1,
com.sun.mirror.declaration.TypeDeclaration declaration2)
declaration1 - the first declaration.declaration2 - the second declaration.
public ValidationResult validateRootResources(java.util.List<RootResource> rootResources)
validateRootResources in class BaseValidatorprotected boolean isConvertableToStringByJAXRS(com.sun.mirror.type.TypeMirror type)
type - The type.
protected boolean isString(com.sun.mirror.type.TypeMirror type)
type - The type.
protected boolean isSuppliableByJAXRS(com.sun.mirror.declaration.Declaration declaration)
declaration - The declaration.
public ValidationResult validateWebMethod(WebMethod webMethod)
public ValidationResult validateComplexType(ComplexTypeDefinition complexType)
validateComplexType in class BaseValidatorpublic ValidationResult validateSimpleType(SimpleTypeDefinition simpleType)
validateSimpleType in class BaseValidatorpublic ValidationResult validateEnumType(EnumTypeDefinition enumType)
validateEnumType in class BaseValidatorpublic ValidationResult validateTypeDefinition(TypeDefinition typeDef)
typeDef - The type definition to validate.
public ValidationResult validateRootElement(RootElementDeclaration rootElementDeclaration)
validateRootElement in class BaseValidatorprotected boolean isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
declaration - The declaration on which to determine xml transience.
public ValidationResult validatePackage(Schema schema)
public ValidationResult validateAttribute(Attribute attribute)
public ValidationResult validateElement(Element element)
public ValidationResult validateValue(Value value)
public ValidationResult validateElementRef(ElementRef elementRef)
public ValidationResult validateAccessor(Accessor accessor)
public ValidationResult validateXmlID(Accessor accessor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||