org.springframework.jee.validation
Class AbstractSpecificationRule
java.lang.Object
org.springframework.jee.validation.AbstractSpecificationRule
- All Implemented Interfaces:
- SpecificationRule
- Direct Known Subclasses:
- AnnotatedMethodSpecificationRule
public abstract class AbstractSpecificationRule
- extends Object
- implements SpecificationRule
Base abstract implementation of SpecificationRule.
- Author:
- Rod Johnson
Field Summary |
protected Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final Log log
AbstractSpecificationRule
public AbstractSpecificationRule()
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-2008 SpringSource (formerly Interface21). All Rights Reserved.