Example #1
0
 @Override
 public AtomReplyTo getReplyTo() {
   for (AtomReplyTo reply : recipients) {
     if (reply.getRef() != null && (reply.getRef().length() > 0)) return reply;
   }
   return null;
 }
Example #2
0
 @Override
 public String toString() {
   StringBuffer buffer = new StringBuffer();
   buffer.append("[AtomEntry ");
   if (id != null) {
     buffer.append("id:" + id + " ");
   }
   if (published != null) {
     buffer.append("published:" + published + " ");
   }
   if (updated != null) {
     buffer.append("updated:" + updated + " ");
   }
   if (title != null) {
     buffer.append("title:" + title + " ");
   }
   for (AtomPerson atomPerson : authors) {
     buffer.append(atomPerson.toString());
   }
   for (AtomPerson atomPerson : contributors) {
     buffer.append(atomPerson.toString());
   }
   for (AtomCategory category : categories) {
     buffer.append(category.toString());
   }
   for (AtomLink atomLink : links) {
     buffer.append(atomLink.toString());
   }
   for (AtomContent atomContent : contents) {
     buffer.append(atomContent.toString());
   }
   for (AtomReplyTo atomRecipient : recipients) {
     buffer.append(atomRecipient.toString());
   }
   buffer.append("]");
   return buffer.toString();
 }