|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.geotools.feature.AbstractAutoValueGenerator<E>
public abstract class AbstractAutoValueGenerator<E>
This interface represents a generator to create an attribute default value individually.
FeatureUtil.registerAutoValueGenerator(AttributeDescriptor, AutoValueGenerator)
,
FeatureUtil.getAutoValueGenerator(AttributeDescriptor)
Field Summary | |
---|---|
protected E |
firstValue
Holds the first value generated by #generateNextValue() . |
protected E |
lastValue
Holds the last value generated by #generateNextValue() . |
Constructor Summary | |
---|---|
AbstractAutoValueGenerator()
Creates a new generator. |
|
AbstractAutoValueGenerator(E firstValue)
Creates a new generator. |
Method Summary | |
---|---|
void |
resetAutoValue(E firstValue)
Resets the generator, so the next #generateNextValue() call
generates firstValue as auto value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface schmitzm.geotools.feature.AutoValueGenerator |
---|
getNextValue |
Field Detail |
---|
protected E firstValue
#generateNextValue()
.
protected E lastValue
#generateNextValue()
.
Constructor Detail |
---|
public AbstractAutoValueGenerator()
public AbstractAutoValueGenerator(E firstValue)
firstValue
- first value generated by #generateNextValue()
Method Detail |
---|
public void resetAutoValue(E firstValue)
#generateNextValue()
call
generates firstValue
as auto value.
resetAutoValue
in interface AutoValueGenerator<E>
firstValue
- next value to generate (if null
the
first value is reset to a previous set first
value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |