org.springframework.rules.metadata
Class AttributesRulesSource

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.rules.constraint.ConstraintsAccessor
          extended by org.springframework.rules.support.DefaultRulesSource
              extended by org.springframework.rules.metadata.AttributesRulesSource
All Implemented Interfaces:
RulesSource

public class AttributesRulesSource
extends DefaultRulesSource

An implementation of RulesSource that loads rules using metadata.

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from class org.springframework.rules.support.DefaultRulesSource
logger
 
Constructor Summary
AttributesRulesSource(Attributes attributes)
           
 
Method Summary
 Rules getRules(Class beanClass, String contextId)
           
 
Methods inherited from class org.springframework.rules.support.DefaultRulesSource
addRules, addRules, getPropertyConstraint, getPropertyConstraint, getRules, setRules, toString
 
Methods inherited from class org.springframework.rules.constraint.ConstraintsAccessor
all, all, and, any, any, bind, bind, bind, bind, bind, conjunction, disjunction, eq, eq, eq, eq, eq, eqProperty, eqProperty, getConstraints, gt, gt, gt, gt, gt, gt, gt, gte, gte, gte, gte, gte, gte, gte, gteProperty, gteProperty, gtProperty, gtProperty, ifTrue, ifTrueElse, inGroup, inGroup, inGroup, inRange, inRange, inRangeProperties, inRangeProperties, like, like, lt, lt, lt, lt, lt, lt, lt, lte, lte, lte, lte, lte, lte, lte, lteProperty, lteProperty, ltProperty, ltProperty, maxLength, method, minLength, not, not, or, present, present, range, range, range, range, range, range, range, regexp, regexp, required, required, testResultOf, unique, value
 
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributesRulesSource

public AttributesRulesSource(Attributes attributes)
Method Detail

getRules

public Rules getRules(Class beanClass,
                      String contextId)
Specified by:
getRules in interface RulesSource
Overrides:
getRules in class DefaultRulesSource


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.