📄 validatable.java
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.util;import com.opensymphony.workflow.InvalidWorkflowDescriptorException;/** * Abstact base class for elements that can be validated. * * @author <a href="mailto:vorburger@users.sourceforge.net">Michael Vorburger</a> * @version $Revision: 1.2 $ */public interface Validatable { //~ Methods //////////////////////////////////////////////////////////////// /** * Validate this element, and propagate validation to all contained sub-elements. * Should throw an InvalidWorkflowDescriptorException with details in message if the element * is invalid. Validity checks should be checks that cannot be encapsulated in the DTD. * * Validation has to be called explicitly on writting, a writeXML() does not validate implicitly; * it *IS* thus possible to write invalid descriptor files. This could be useful for e.g. * a graphical workflow definition editor which would like to write incomplete definitions. * Validation *IS* performed on loading a workflow definition. * * @see com.opensymphony.workflow.loader.WorkflowLoader#load * @throws InvalidWorkflowDescriptorException */ public void validate() throws InvalidWorkflowDescriptorException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -