001/*-------------------------------------------------------------------------+ 002| | 003| Copyright 2005-2011 The ConQAT Project | 004| | 005| Licensed under the Apache License, Version 2.0 (the "License"); | 006| you may not use this file except in compliance with the License. | 007| You may obtain a copy of the License at | 008| | 009| http://www.apache.org/licenses/LICENSE-2.0 | 010| | 011| Unless required by applicable law or agreed to in writing, software | 012| distributed under the License is distributed on an "AS IS" BASIS, | 013| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 014| See the License for the specific language governing permissions and | 015| limitations under the License. | 016+-------------------------------------------------------------------------*/ 017package org.conqat.lib.commons.xml; 018 019/** 020 * This interface defines processors that process elements from an XML file. 021 * 022 * @param <E> 023 * the enumeration describing the XML elements 024 * @param <X> 025 * the exception type this processor might throw 026 * @author Florian Deissenboeck 027 */ 028public interface IXMLElementProcessor<E extends Enum<E>, X extends Exception> { 029 030 /** The element type this processor is meant to process. */ 031 public E getTargetElement(); 032 033 /** Process element. */ 034 public void process() throws X; 035}