public static IndexEntry [ ] processIndexString ( final String theIndexMarkerString , final List < Node > contents ) { final IndexEntryImpl indexEntry = createIndexEntry ( theIndexMarkerString , contents , null , false ) ; final StringBuffer referenceIDBuf = new StringBuffer ( ) ; referenceIDBuf . append ( indexEntry . getValue ( ) ) ; referenceIDBuf . append ( VALUE_SEPARATOR ) ; indexEntry . addRefID ( referenceIDBuf . toString ( ) ) ; return new IndexEntry [ ] { indexEntry } ; }
Parse the index marker string and create IndexEntry object from one .