org.anc.util.PrefixedIDGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Common utility classes used in most ANC projects.
The newest version!
package org.anc.util;
public class PrefixedIDGenerator extends IDGenerator
{
private String prefix;
public PrefixedIDGenerator(String prefix)
{
super();
this.prefix = prefix;
}
@Override
public String generate(String type)
{
String id = super.generate(type);
if (prefix != null)
{
return prefix + "-" + id;
}
return id;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy