org.weda.property.impl
Class StaticSetConstraint
java.lang.Object
org.weda.property.impl.AbstractConstraint
org.weda.property.impl.StaticSetConstraint
- All Implemented Interfaces:
- Constraint, SetConstraint
public class StaticSetConstraint
- extends AbstractConstraint
- implements SetConstraint
- Author:
- Mikhail Titov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticSetConstraint
public StaticSetConstraint()
init
public void init()
throws ConstraintException
- Overrides:
init
in class AbstractConstraint
- Throws:
ConstraintException
addSetValue
public void addSetValue(SetValueImpl setValue)
check
public void check(java.lang.Object value,
java.lang.Object[] parameters)
throws ConstraintException
- Description copied from interface:
Constraint
- Метод осуществляет проверку значения на соотвествие ограничению.
- Specified by:
check
in interface Constraint
- Parameters:
value
- значение которое необходимо проверитьparameters
- дополнительные параметры которые необходимы
ограничению для проведения проверки
- Throws:
ConstraintException
iterator
public java.util.Iterator<SetValue> iterator()
- Description copied from interface:
SetConstraint
- Метод возвращает итератор по множеству значений ограничения
- Specified by:
iterator
in interface SetConstraint
isValuesAliased
public boolean isValuesAliased()
- Description copied from interface:
SetConstraint
- Метод вернет
true
если у каждого SetValue
ограничения заполнено поле alias
.
- Specified by:
isValuesAliased
in interface SetConstraint
getValueType
public java.lang.Class getValueType()
setValueType
public void setValueType(java.lang.Class valueType)
getConversionPattern
public java.lang.String getConversionPattern()
setConversionPattern
public void setConversionPattern(java.lang.String conversionPattern)
setValuesAliased
public void setValuesAliased(boolean valuesAliased)
getParameterTypes
public java.lang.Class[] getParameterTypes(java.lang.Class valueType)
throws ConstraintException
- Description copied from interface:
Constraint
- Метод возвращает типы параметров передающихся в методе
Constraint.check(Object, Object[])
- Specified by:
getParameterTypes
in interface Constraint
- Throws:
ConstraintException
Copyright © 2005-2006 . All Rights Reserved.