- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.util.ArrayList<java.lang.String>>
public class DefaultLabelPatterns
extends LabelPattern
How this works:
The fields used to autogeneratr keys are stored in an ArrayList
with the first item of the list being a string representation of
the key pattern and the second item the spacer character.
The order of the fields in the autogenerated key will match the
order of the fields in the ArrayList.
Each entry type will have its own corrosponding ArrayList, to handle
this, we will have a Hashtable where an entry type > ArrayList.
There will be a default KP, which will parent a userdefined KP.
Upon generatring keys we will itentify the type of entry, fetch
the proper Array, store the spacer in a temp. String. By reading the
field in the Array, the proper value will be fetched and stored in a
StringBuffer, with the spacer between each field.
Btw. we wont allow for keys like [auth][year]_[pages], is this a
problem?
- Author:
- Ulrik Stervbo (ulriks AT ruc.dk)
- See Also:
- Serialized Form