Class SequentialIdGenerator<T>

java.lang.Object
org.vast.ogc.gml.SequentialIdGenerator<T>
Type Parameters:
T - Type of identified object
All Implemented Interfaces:
GmlIdGenerator<T>

public class SequentialIdGenerator<T> extends Object implements GmlIdGenerator<T>

Implementation of GML ID generator that just creates numerical IDs in sequence, prefixed by a configurable string.

  • Field Details

    • prefix

      protected String prefix
    • keepOriginal

      protected boolean keepOriginal
    • counter

      protected int counter
  • Constructor Details

    • SequentialIdGenerator

      public SequentialIdGenerator(String prefix, boolean keepOriginal)
      Parameters:
      prefix -
      keepOriginal - Keep the ID contained in the object if set
  • Method Details