001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.sys.document.validation; 017 018 /** 019 * Even as we make perfectly good classes, the Maw of Spring calls out for Validations to eat and to proxy. We cannot argue with the beast; this being Java, 020 * we may not subsume to the two concepts into one; thus we find ourselves, exhuasted and outraged, with no choice but to slave and feed Spring interfaces 021 * such as this, causing the rotted wyrm to spew out the beans we do crave. Such wretched souls are we! 022 */ 023 public interface ValidationFieldConvertible { 024 /** 025 * Gets the sourceEventProperty attribute, the property of the event to transfer to the validation 026 * @return Returns the sourceEventProperty. 027 */ 028 public abstract String getSourceEventProperty(); 029 030 /** 031 * Gets the targetValidationProperty attribute, the property on the validation to transfer information from the event to 032 * @return Returns the targetValidationProperty. 033 */ 034 public abstract String getTargetValidationProperty(); 035 }