Class SVGIDGenerator


  • public class SVGIDGenerator
    extends java.lang.Object
    Generates id for an arbitrary number of prefix
    Version:
    $Id: SVGIDGenerator.java 1805408 2017-08-18 12:21:52Z ssteiner $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map prefixMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      SVGIDGenerator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateID​(java.lang.String prefix)
      Generates an id for the given prefix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • prefixMap

        private java.util.Map prefixMap
    • Constructor Detail

      • SVGIDGenerator

        public SVGIDGenerator()
    • Method Detail

      • generateID

        public java.lang.String generateID​(java.lang.String prefix)
        Generates an id for the given prefix. This class keeps track of all invocations to that it generates unique ids
        Parameters:
        prefix - defines the prefix for which the id should be generated.
        Returns:
        a value of the form <prefix><n>