public static String generateRevisionNumber ( final ContentSpec contentSpec ) { final StringBuilder rev = new StringBuilder ( ) ; rev . append ( generateRevision ( contentSpec ) ) ; // Add the separator rev . append ( "-" ) ; // Build the pubsnumber part of the revision number. final Integer pubsnum = contentSpec . getPubsNumber ( ) ; if ( pubsnum == null ) { rev . append ( BuilderConstants . DEFAULT_PUBSNUMBER ) ; } else { rev . append ( pubsnum ) ; } return rev . toString ( ) ; }
Generates the Revision Number to be used in a Revision_History . xml file using the Book Version Edition and Pubsnumber values from a content specification .