Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.wcps.property
Interface IValidator<T extends java.io.Serializable>

All Known Implementing Classes:
IntRangeValidator, NumberRangeValidator, RegexPatternValidator, StringLengthValidator

public interface IValidator<T extends java.io.Serializable>

Validates a property's value before a property or propertyset is created or updated. The validate method throws ValidationFailedException if property's value is invalid. An instance of this is shared across propertysets. This class can be reused with different validatorValue values set in IPropertyDefinition. For example, for an implementation that validates string length, the string length value can be set as a validator value.


Field Summary
static IValidator NULL
          A no op implementation of this.

 

Method Summary
 void validate(IProperty<T> property, IPropertyDefinition propertyDefinition, java.lang.String validatorValue)
          Validates the given property's value.

 

Field Detail

NULL

static final IValidator NULL
A no op implementation of this.

Method Detail

validate

void validate(IProperty<T> property,
              IPropertyDefinition propertyDefinition,
              java.lang.String validatorValue)
              throws ValidationFailedException
Validates the given property's value.
Parameters:
property - a property to be validated.
propertyDefinition - the propertydefinition for the given property.
validatorValue - an extra value to use in validation.
Throws:
ValidationFailedException - if validation fails.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.