public static class Validators.RepositoryItemIdValidator extends Validators.StringTrimmingValidator
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
mItemType  | 
protected Repository | 
mRepository  | 
CLASS_VERSION| Constructor and Description | 
|---|
RepositoryItemIdValidator()
A no-parameter constructor, primarily for use by the
 XML-based validator builder. 
 | 
RepositoryItemIdValidator(Repository pRepository,
                         java.lang.String pItemType)  | 
RepositoryItemIdValidator(Repository pRepository,
                         java.lang.String pItemType,
                         java.lang.String pErrorCode)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getItemType()
Returns property itemType. 
 | 
Repository | 
getRepository()
Returns property repository. 
 | 
void | 
setItemType(java.lang.String pItemType)
Sets property itemType. 
 | 
void | 
setRepository(Repository pRepository)
Sets property repository. 
 | 
java.lang.String | 
validateValue(java.lang.String pPropertyName,
             java.lang.Object pPropertyValue,
             ValidatorContext<?> pContext)
Validate that a Repository Item with the given ID actuall exists. 
 | 
shouldTrimgetMaxLength, setMaxLengthgetClassRequired, getRequiredOption, getRequiredPredicate, isRequired, keyMustBePresent, setClassRequired, setRequired, setRequiredOption, setRequiredPredicateassertAlphanumeric, assertBoolean, assertDateTime, assertDouble, assertInstanceOf, assertInteger, assertLong, assertNotBlankString, assertNotEmpty, assertNotEmpty, assertNotNull, assertNotNull, assertString, assertString, assertString, createInstance, getBeanPropertyValueForValidation, getErrorCode, getNameForClass, getPropertyNames, getPropertyValue, getPropertyValue, hasProperty, isDigits, isRequired, setErrorCode, setPropertyValue, validateBeanPropertyprotected Repository mRepository
protected java.lang.String mItemType
public RepositoryItemIdValidator(Repository pRepository, java.lang.String pItemType)
public RepositoryItemIdValidator(Repository pRepository, java.lang.String pItemType, java.lang.String pErrorCode)
public RepositoryItemIdValidator()
public void setRepository(Repository pRepository)
public Repository getRepository()
public void setItemType(java.lang.String pItemType)
public java.lang.String getItemType()
public java.lang.String validateValue(java.lang.String pPropertyName,
                                      java.lang.Object pPropertyValue,
                                      ValidatorContext<?> pContext)
validateValue in interface Validator<java.lang.String>validateValue in class Validators.StringValidatorpPropertyName - the name of the property being validated. This
   is typically used as a key for fetching the value from pProperties.pPropertyValue - the fetched property valuepContext - the current validation context.Validators.NonNullValidator.validateValue(String, Object, ValidatorContext)