de.smartics.exceptions.code
Class RunningZerosNumberCodeInfo
java.lang.Object
de.smartics.exceptions.code.NumberCodeInfo
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
Method Summary |
String |
getCode() Returns the string representation of the code. |
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
.
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.