protected final int reserveTermName ( String name ) { checkStatus ( Status . INITIALIZING ) ; checkInitializationPrecondition ( TermUtils . isValidTermName ( name ) , "Object '%s' is not a valid term name" , name ) ; checkInitializationPrecondition ( ! this . nameOrdinal . containsKey ( name ) , "Term '%s' has been already reserved" , name ) ; this . nameOrdinal . put ( name , ++ this . ordinal ) ; return this . ordinal ; }
Allow the reservation of term names during the initialization of the vocabulary .