Back to index

wims  3.65+svn20090927
FormaterRepository.java
Go to the documentation of this file.
00001 /*
00002 $Id: FormaterRepository.java,v 1.2 2003/02/18 11:48:48 sander Exp $
00003 */
00004 
00005 
00006 package fr.ove.utils;
00007 
00008 import fr.ove.utils.Formater;
00009 
00021 public abstract class FormaterRepository implements Formater {
00022     private String indent = "  ";
00023     
00027     public String getIndent() {
00028         return indent;
00029     }
00030     
00034     public void incIndent() {
00035         indent += "  ";
00036     }
00037     
00041     public void decIndent() {
00042         indent = indent.substring(0, indent.length() - 2);
00043     }
00044     
00048     public void initIndent() {
00049         indent = "  ";
00050     }
00051     
00056     public abstract Formater getFormater(String objectId);
00057 }