public static void register ( int id , Class < ? extends Tag > tag ) throws TagRegisterException { if ( idToTag . containsKey ( id ) ) { throw new TagRegisterException ( "Tag ID \"" + id + "\" is already in use." ) ; } if ( tagToId . containsKey ( tag ) ) { throw new TagRegisterException ( "Tag \"" + tag . getSimpleName ( ) + "\" is already registered." ) ; } idToTag . put ( id , tag ) ; tagToId . put ( tag , id ) ; }
Registers a tag class .