de.smartics.exceptions.code
Class RunningZerosNumberCodeInfo

Package class diagram package RunningZerosNumberCodeInfo
java.lang.Object
  extended by de.smartics.exceptions.code.NumberCodeInfo
      extended by de.smartics.exceptions.code.RunningZerosNumberCodeInfo
All Implemented Interfaces:
NumberCode, Code, Serializable

public class RunningZerosNumberCodeInfo
     
     
extends NumberCodeInfo

Implements a number code with padded zeros in front.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.code.NumberCodeInfo
componentId, majorNumber, minorNumber
 
Constructor Summary
RunningZerosNumberCodeInfo(String componentId, Integer majorNumber, Integer minorNumber)
          Default constructor.
 
Method Summary
 String getCode()
          Returns the string representation of the code.
 
Methods inherited from class de.smartics.exceptions.code.NumberCodeInfo
getComponentId, getDisplayId, getMajorNumber, getMinorNumber, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RunningZerosNumberCodeInfo

public RunningZerosNumberCodeInfo(String componentId,
                                  Integer majorNumber,
                                  Integer minorNumber)
                           throws NullPointerException
Default constructor.

Parameters:
componentId - the identifier of the component this code belongs to.
majorNumber - the major number of the code defines a group of codes.
minorNumber - the minor number gives additional information about the problem.
Throws:
NullPointerException - if the major number is null.
Method Detail

getCode

public String getCode()
Description copied from interface: Code
Returns the string representation of the code.

This is the code within the component and lacks the component identifier. If the component is interested in the code, this identifier is used.

Specified by:
getCode in interface Code
Overrides:
getCode in class NumberCodeInfo
Returns:
the string representation of the code.


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.