Ignore:
Timestamp:
2017-04-22T17:57:11+02:00 (3 years ago)
Author:
Don-vip
Message:

add unit tests, javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ContextSwitchTemplate.java

    r11809 r11974  
    2121import org.openstreetmap.josm.data.osm.Way;
    2222
     23/**
     24 * The context switch offers possibility to use tags of referenced primitive when constructing primitive name.
     25 * @author jttt
     26 * @since 4546
     27 */
    2328public class ContextSwitchTemplate implements TemplateEntry {
    2429
     
    244249    }
    245250
     251    /**
     252     * Constructs a new {@code ContextSwitchTemplate}.
     253     * @param match match
     254     * @param template template
     255     * @param searchExpressionPosition search expression position
     256     * @throws ParseError if a parse error occurs, or if the match transformation returns the same primitive
     257     */
    246258    public ContextSwitchTemplate(Match match, TemplateEntry template, int searchExpressionPosition) throws ParseError {
    247259        Match m = transform(match, searchExpressionPosition);
Note: See TracChangeset for help on using the changeset viewer.