Esempio n. 1
0
  private static void printUserEntry(UserEntry ue) {

    System.out.println("id is " + ue.getId());
    System.out.println("uid is " + ue.getUid());
    System.out.println("location is " + ue.getLocation());

    System.out.println("content is " + ((TextContent) ue.getContent()).getContent().getPlainText());
    System.out.println("title is " + ue.getTitle().getPlainText());

    printUserEntryLinks(ue);
    System.out.println("-------------------");
  }
Esempio n. 2
0
 private static void printUserEntryLinks(UserEntry ue) {
   System.out.println("--Links:");
   for (Link link : ue.getLinks()) {
     System.out.println("  " + link.getRel() + " is " + link.getHref());
   }
 }