001/*
002 * Copyright (c) 2004-2012, Willem Cazander
003 * All rights reserved.
004 *
005 * Redistribution and use in source and binary forms, with or without modification, are permitted provided
006 * that the following conditions are met:
007 * 
008 * * Redistributions of source code must retain the above copyright notice, this list of conditions and the
009 *   following disclaimer.
010 * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
011 *   the following disclaimer in the documentation and/or other materials provided with the distribution.
012 * 
013 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
014 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
015 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
016 * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
017 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
018 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
019 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
020 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
021 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
022 */
023
024package org.x4o.xml.element;
025
026import java.util.List;
027
028/**
029 * Handlers attributes for xml attributes of all elements processed.
030 * 
031 * @author Willem Cazander
032 * @version 1.0 Aug 20, 2005
033 */
034public interface ElementAttributeHandler extends ElementConfigurator {
035        
036        /**
037         * Gets the attribute name this attribute handler handles.
038         * @return      Returns the attributes name of this attribute handler.
039         */
040        String getAttributeName();
041        
042        /**
043         * Sets the attribute name this attribute handler handles.
044         * @param attributeName
045         */
046        void setAttributeName(String attributeName);
047        
048        /**
049         * Adds an NextAttribute.
050         * There next attributes will defines the order in which the ElementAttributeHandlers are executed.
051         * @param attribute
052         */
053        void addNextAttribute(String attribute);
054
055        /**
056         * Removes an next attribute
057         * @param attribute
058         */
059        void removeNextAttribute(String attribute); 
060        
061        /**
062         * Get all next attributes
063         * @return      Returns the list of all next attributes.
064         */
065        List<String> getNextAttributes();
066}