Back to index

wims  3.65+svn20090927
Public Member Functions | Private Attributes
fr.ove.utils.FormaterRepository Class Reference

A formater repository. More...

Inheritance diagram for fr.ove.utils.FormaterRepository:
Inheritance graph
[legend]
Collaboration diagram for fr.ove.utils.FormaterRepository:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String getIndent ()
 Returns the current indentation.
void incIndent ()
 Increments the indentation.
void decIndent ()
 Decrements the indentation.
void initIndent ()
 Init indentation.
abstract Formater getFormater (String objectId)
 Returns the formater with the specified identifier.
String format (String formatedObject, FormaterRepository formaterRepository, Object obj)
 Returns the specified object formatted as a string.

Private Attributes

String indent = " "

Detailed Description

A formater repository.


The aim of this class is to format, as a string, an object by the means of

See also:
Formater the instance manages.
To each objet (or part of object) corresponds a
Formater.

The different subclasses have to implement the

See also:
format method in the
Formater interface the instance pretends to implement.
Author:
2000 DIRAT Laurent
Version:
1.0 07/01/2000

Definition at line 21 of file FormaterRepository.java.


Member Function Documentation

Decrements the indentation.

Definition at line 41 of file FormaterRepository.java.

                            {
        indent = indent.substring(0, indent.length() - 2);
    }
String fr.ove.utils.Formater.format ( String  formatedObject,
FormaterRepository  formaterRepository,
Object  obj 
) [inherited]

Returns the specified object formatted as a string.

Parameters:
formatedObjectthe formatted object (for structured object, could represents the beginning).
formaterRepositorywhere the different other formaters are.
objthe object to format.
abstract Formater fr.ove.utils.FormaterRepository.getFormater ( String  objectId) [pure virtual]

Returns the formater with the specified identifier.

Parameters:
objectIdthe object (to format) identifier.

Returns the current indentation.

Definition at line 27 of file FormaterRepository.java.

                              {
        return indent;
    }

Increments the indentation.

Definition at line 34 of file FormaterRepository.java.

                            {
        indent += "  ";
    }

Init indentation.

Definition at line 48 of file FormaterRepository.java.

                             {
        indent = "  ";
    }

Member Data Documentation

Definition at line 22 of file FormaterRepository.java.


The documentation for this class was generated from the following file: