/** * Combines tags from TIGER data * * @param tc the tag collection */ public static void combineTigerTags(TagCollection tc) { for (String key : tc.getKeys()) { if (TigerUtils.isTigerTag(key)) { tc.setUniqueForKey(key, TigerUtils.combineTags(key, tc.getValues(key))); } } }
/** * Initializes the model from a relation representing a turn restriction * * @param turnRestriction the turn restriction */ protected void initFromTurnRestriction(Relation turnRestriction) { // populate the member model memberModel.populate(turnRestriction); // make sure we have a restriction tag TagCollection tags = TagCollection.from(turnRestriction); tags.setUniqueForKey("type", "restriction"); tagEditorModel.initFromTags(tags); setChanged(); notifyObservers(); }