Package org.apache.batik.svggen
Class SVGIDGenerator
java.lang.Object
org.apache.batik.svggen.SVGIDGenerator
Generates id for an arbitrary number of prefix
- Version:
- $Id: SVGIDGenerator.java 1805408 2017-08-18 12:21:52Z ssteiner $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateID
(String prefix) Generates an id for the given prefix.
-
Field Details
-
prefixMap
-
-
Constructor Details
-
SVGIDGenerator
public SVGIDGenerator()
-
-
Method Details
-
generateID
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>
-