testApplication
Class TestLogElement

java.lang.Object
  extended by logging.LogElement
      extended by testApplication.TestLogElement

public class TestLogElement
extends LogElement

This class provides an example for using logging.LogElement. The super class has been extended by member value and corresponding get method. The standard constructor has been overwritten and a new one has been introduced.

Author:
MSchäfer DHBW Stuttgart/Campus Horb AI2008

See Also:
LogElement

Constructor Summary
TestLogElement()
          Standard constructor.
TestLogElement(int step, java.lang.String description, long value)
          Extended constructor.
 
Method Summary
 long getValue()
          Returns the log element's sum up value.
 
Methods inherited from class logging.LogElement
getDescription, getStep, setDescription, setStep
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestLogElement

public TestLogElement()
Standard constructor. Calls the constructor of super class and sets value 0.


TestLogElement

public TestLogElement(int step,
                      java.lang.String description,
                      long value)
Extended constructor. Sets specified step number, description and sum up value.

Parameters:
step - the log element's step number
description - the log element's step description
value - the log element's sum up value
Method Detail

getValue

public long getValue()
Returns the log element's sum up value.

Returns:
the log element's sum up value