예제 #1
0
 /**
  * Get properties by name from first VEVENT.
  *
  * @param name property name
  * @return properties
  */
 public List<VProperty> getFirstVeventProperties(String name) {
   if (firstVevent == null) {
     return null;
   } else {
     return firstVevent.getProperties(name);
   }
 }
예제 #2
0
 protected void splitExDate(VObject vObject) {
   List<VProperty> exDateProperties = vObject.getProperties("EXDATE");
   if (exDateProperties != null) {
     for (VProperty property : exDateProperties) {
       String value = property.getValue();
       if (value.indexOf(',') >= 0) {
         // split property
         vObject.removeProperty(property);
         for (String singleValue : value.split(",")) {
           VProperty singleProperty = new VProperty("EXDATE", singleValue);
           singleProperty.setParams(property.getParams());
           vObject.addProperty(singleProperty);
         }
       }
     }
   }
 }