org.springframework.jee.validation
Interface SpecificationRule

All Known Implementing Classes:
AbstractSpecificationRule, AnnotatedMethodSpecificationRule

public interface SpecificationRule

Synthetic interface used to wrap specification rule annotations, also including the target method.

Author:
Rod Johnson

Method Summary
 boolean appliesTo(java.lang.Class<?> clazz)
           
 void execute(java.lang.Object o, InvalidDeploymentUnitException dum)
           
 int getChapter()
           
 int getHeading()
           
 java.util.Set<Platform> getPlatforms()
          Return the set of JEE Platforms this rule relates to
 int getSubheading()
           
 

Method Detail

getChapter

int getChapter()
Returns:
the chapter from the specification. If it's 8.1.2, this would be 8.

getHeading

int getHeading()
Returns:
the heading from the chapter from the specification. If it's 8.1.2, this would be 1

getSubheading

int getSubheading()
Returns:
the subheading from the specification. E.g. if it's 8.1.2, this would be 2. Defaults to 0 if there is no subheading.

getPlatforms

java.util.Set<Platform> getPlatforms()
Return the set of JEE Platforms this rule relates to

Returns:
Platforms the rule represented by this location is valid for

execute

void execute(java.lang.Object o,
             InvalidDeploymentUnitException dum)

appliesTo

boolean appliesTo(java.lang.Class<?> clazz)


Copyright 2006 Interface21. All Rights Reserved.