org.springframework.jee.validation
Class AbstractSpecificationRule

java.lang.Object
  extended by org.springframework.jee.validation.AbstractSpecificationRule
All Implemented Interfaces:
SpecificationRule
Direct Known Subclasses:
AnnotatedMethodSpecificationRule

public abstract class AbstractSpecificationRule
extends java.lang.Object
implements SpecificationRule

Base abstract implementation of SpecificationRule.

Author:
Rod Johnson

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
AbstractSpecificationRule()
           
 
Method Summary
 int getChapter()
           
 int getHeading()
           
 int getSubheading()
           
protected  void init(int chapter, int heading, int subheading)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.jee.validation.SpecificationRule
appliesTo, execute, getPlatforms
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

AbstractSpecificationRule

public AbstractSpecificationRule()
Method Detail

init

protected void init(int chapter,
                    int heading,
                    int subheading)

getChapter

public final int getChapter()
Specified by:
getChapter in interface SpecificationRule
Returns:
the chapter from the specification. If it's 8.1.2, this would be 8.

getHeading

public final int getHeading()
Specified by:
getHeading in interface SpecificationRule
Returns:
the heading from the chapter from the specification. If it's 8.1.2, this would be 1

getSubheading

public final int getSubheading()
Specified by:
getSubheading in interface SpecificationRule
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.


Copyright 2006 Interface21. All Rights Reserved.