当前位置: 首页>>代码示例>>Java>>正文


Java PropertyList.remove方法代码示例

本文整理汇总了Java中net.fortuna.ical4j.model.PropertyList.remove方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyList.remove方法的具体用法?Java PropertyList.remove怎么用?Java PropertyList.remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.fortuna.ical4j.model.PropertyList的用法示例。


在下文中一共展示了PropertyList.remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setRecurrenceDates

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setRecurrenceDates(DateList dates) {
    if (dates == null) {
        return;
    }
    
    PropertyList<RDate> rdateList = getEvent().getProperties().getProperties(Property.RDATE);
    for (RDate rdate : rdateList) {
        rdateList.remove(rdate);
    }
    if (dates.isEmpty()) {
        return;
    }
    
    RDate rDate = new RDate(dates);
    setDateListPropertyValue(rDate);
    rdateList.add(rDate);   
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:18,代码来源:HibBaseEventStamp.java

示例2: setExceptionDates

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setExceptionDates(DateList dates) {
    if (dates == null) {
        return;
    }
    
    PropertyList<Property> properties = getEvent().getProperties();
    for (Property exdate : properties.getProperties(Property.EXDATE)) {
        properties.remove(exdate);
    }
    if (dates.isEmpty()) {
        return;
    }
    
    ExDate exDate = new ExDate(dates);
    setDateListPropertyValue(exDate);
    properties.add(exDate);
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:18,代码来源:HibBaseEventStamp.java

示例3: setRecurrenceDates

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
 * Sets recurrence dates.
 * @param dates The date list.
 */    
public void setRecurrenceDates(DateList dates) { 
    if (dates == null) {
        return;
    }
    
    PropertyList<Property> pl = getEvent().getProperties();
    for (Property rdate : pl.getProperties(Property.RDATE)) {
        pl.remove(rdate);
    }
    if (dates.isEmpty()) {
        return;
    }
    
    RDate rDate = new RDate(dates);
    setDateListPropertyValue(rDate);
    pl.add(rDate);   
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:22,代码来源:MockBaseEventStamp.java

示例4: setExceptionDates

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
 * Sets exception dates.
 * @param dates The date list.
 */    
public void setExceptionDates(DateList dates) {
    if (dates == null) {
        return;
    }
    
    PropertyList<Property> properties = getEvent().getProperties();
    for (Property exdate : properties.getProperties(Property.EXDATE)) {
        properties.remove(exdate);
    }
    if (dates.isEmpty()) {
        return;
    }
    
    ExDate exDate = new ExDate(dates);
    setDateListPropertyValue(exDate);
    properties.add(exDate);
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:22,代码来源:MockBaseEventStamp.java

示例5: replaceProperty

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static void replaceProperty(PropertyList propertyList, Property property) {
    if (property == null) {
        return;
    }
    Property existingProp = propertyList.getProperty(property.getName());
    if (existingProp != null) {
        propertyList.remove(existingProp);
    }
    propertyList.add(property);
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:11,代码来源:ICalConverter.java

示例6: setRecurrenceRules

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setRecurrenceRules(List<Recur> recurs) {
    if (recurs == null) {
        return;
    }
    PropertyList<Property> properties = getEvent().getProperties();
    for (Property rrule : properties.getProperties(Property.RRULE)) {
        properties.remove(rrule);
    }
    for (Recur recur : recurs) {
        properties.add(new RRule(recur));
    }      
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:13,代码来源:HibBaseEventStamp.java

示例7: setExceptionRules

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setExceptionRules(List<Recur> recurs) {
    if (recurs == null) {
        return;
    }
    PropertyList<Property> properties = getEvent().getProperties();
    for (Property exrule : properties.getProperties(Property.EXRULE)) {
        properties.remove(exrule);
    }
    for (Recur recur : recurs) {
        properties.add(new ExRule(recur));
    }
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:13,代码来源:HibBaseEventStamp.java

示例8: setRecurrenceRules

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
 * Sets recurrence rules.
 * @param recurs List with recurrence rules.
 */
public void setRecurrenceRules(List<Recur> recurs) {
    if (recurs == null) {
        return;
    }
    PropertyList<Property> pl = getEvent().getProperties();
    for (Property rrule : pl.getProperties(Property.RRULE)) {
        pl.remove(rrule);
    }
    for (Recur recur : recurs) {
        pl.add(new RRule(recur));
    }
  
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:18,代码来源:MockBaseEventStamp.java

示例9: setExceptionRules

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
 * Sets exception rules.
 * @param recurs The list.
 */
public void setExceptionRules(List<Recur> recurs) {
    if (recurs == null) {
        return;
    }
    PropertyList<Property> pl = getEvent().getProperties();
    for (Property exrule : pl.getProperties(Property.EXRULE)) {
        pl.remove(exrule);
    }
    for (Recur recur : recurs) {
        pl.add(new ExRule(recur));
    }
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:17,代码来源:MockBaseEventStamp.java


注:本文中的net.fortuna.ical4j.model.PropertyList.remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。