Class SquareNumberPart
- java.lang.Object
-
- com.nomagic.magicdraw.examples.autoid.squarenumber.SquareNumberPart
-
- All Implemented Interfaces:
IJavaNumberPart
@OpenApiAll public class SquareNumberPart extends java.lang.Object implements IJavaNumberPart
This sample will create Square Numbers as output. Jun 29, 2011
-
-
Constructor Summary
Constructors Constructor Description SquareNumberPart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateNextId(java.lang.String lastNumberPart)
Generate a new ID.
-
-
-
Method Detail
-
generateNextId
public java.lang.String generateNextId(java.lang.String lastNumberPart)
Description copied from interface:IJavaNumberPart
Generate a new ID. The new ID logically increases the value of the lastNumberPart- Specified by:
generateNextId
in interfaceIJavaNumberPart
- Parameters:
lastNumberPart
- the last significant NumberPart of the previous Id- Returns:
- the last significant Number Part in the new Element ID.
-
-