public void addTagIdMappings ( String tagId , String realId , String realName ) { assert ( tagId != null ) : "The parameter 'tagId' must not be null" ; assert ( realId != null ) : "The parameter 'realId' must not be null" ; _writeId = true ; if ( realName != null ) { if ( _idToNameMap == null ) _idToNameMap = new HashMap /*<String, String>*/ ( ) ; _idToNameMap . put ( tagId , realName ) ; } }
This will add the mapping between the tagId and the real name to the NameMap hashmap .