Package gluebooster.basic.metadata

Examples of gluebooster.basic.metadata.ObjectAnalyzer


   * @param newCommentText the new value
   */
  @SuppressWarnings("rawtypes")
  public static void setCommentText(Doc doc, String newCommentText) throws Exception{
   
      ObjectAnalyzer analyzer = new ObjectAnalyzer(doc);
      Object comment = analyzer.getPrivateField("comment");
      if (comment != null){
        ObjectAnalyzer commentanalyzer = new ObjectAnalyzer(comment);
        commentanalyzer.setPrivateField("text", newCommentText);
      } else {
        doc.setRawCommentText(newCommentText);
        comment = doc.commentText();
       
      }
View Full Code Here

TOP

Related Classes of gluebooster.basic.metadata.ObjectAnalyzer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.