001/** 002 * Copyright 2005-2018 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 */ 016package org.kuali.rice.krad.datadictionary; 017 018import org.kuali.rice.krad.datadictionary.parse.BeanTag; 019import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute; 020import org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator; 021 022import java.io.Serializable; 023 024/** 025 * This class represents an serializable property when generating workflow routing XML. The path contained within this 026 * object 027 * is relative to the basePath in the {@link WorkflowPropertyGroup} that contains this object. The semantics of the 028 * path are determined 029 * by the {@link PropertySerializabilityEvaluator} that evaluates whether a property is serializable. 030 */ 031@BeanTag(name = "workflowProperty") 032public class WorkflowProperty implements Serializable { 033 private static final long serialVersionUID = 1L; 034 035 protected String path = null; 036 037 /** 038 * Default constructor, sets path to null 039 */ 040 public WorkflowProperty() {} 041 042 /** 043 * Returns the path to the property that is serializable, relative to the {@link WorkflowPropertyGroup} that 044 * contains this object 045 * 046 * @return path 047 */ 048 @BeanTagAttribute(name = "path") 049 public String getPath() { 050 return this.path; 051 } 052 053 /** 054 * Sets the path to the property that is serializable, relative to the {@link WorkflowPropertyGroup} that contains 055 * this object 056 * 057 * @param path 058 */ 059 public void setPath(String path) { 060 this.path = path; 061 } 062}