Mercurial > dive4elements > framework
view artifact-database/src/main/java/de/intevation/artifactdatabase/state/Settings.java @ 416:733e76413bf8
Add REST service to be able to find a user by its account name
artifacts/trunk@5263 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 24 Aug 2012 14:09:53 +0000 |
parents | f93edbfcf2bc |
children |
line wrap: on
line source
package de.intevation.artifactdatabase.state; import java.io.Serializable; import org.w3c.dom.Node; /** * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public interface Settings extends Serializable { /** * Adds a new Section to this Settings object. * * @param section the new Section. */ void addSection(Section section); /** * Returns the number of Sections in this Settings object. * * @return the number of sections. */ int getSectionCount(); /** * Returns the section at position <i>pos</i>. * * @param pos the position of the target Section. * * @return the Section at position <i>pos</i> or null if no Section is * existing at <i>pos</i>. */ Section getSection(int pos); /** * Removes a Section if it is existing in this Settings. * * @param section The section that should be removed. */ void removeSection(Section section); /** * Transforms this Settings object into a XML representation. Therefore, * each Section object's <i>toXML</i> method is called to append its XML * representation to the final document. * * @param parent The parent node. */ void toXML(Node parent); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :