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


Java PropertyList.getProperty方法代码示例

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


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

示例1: loadWorkEffort

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static void loadWorkEffort(PropertyList componentProps, GenericValue workEffort) {
    replaceProperty(componentProps, new DtStamp()); // iCalendar object created date/time
    replaceProperty(componentProps, toClazz(workEffort.getString("scopeEnumId")));
    replaceProperty(componentProps, toCreated(workEffort.getTimestamp("createdDate")));
    replaceProperty(componentProps, toDescription(workEffort.getString("description")));
    replaceProperty(componentProps, toDtStart(workEffort.getTimestamp("estimatedStartDate")));
    replaceProperty(componentProps, toLastModified(workEffort.getTimestamp("lastModifiedDate")));
    replaceProperty(componentProps, toPriority(workEffort.getLong("priority")));
    replaceProperty(componentProps, toLocation(workEffort.getString("locationDesc")));
    replaceProperty(componentProps, toStatus(workEffort.getString("currentStatusId")));
    replaceProperty(componentProps, toSummary(workEffort.getString("workEffortName")));
    Property uid = componentProps.getProperty(Uid.UID);
    if (uid == null) {
        // Don't overwrite UIDs created by calendar clients
        replaceProperty(componentProps, toUid(workEffort.getString("workEffortId")));
    }
    replaceProperty(componentProps, toXProperty(workEffortIdXPropName, workEffort.getString("workEffortId")));
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:19,代码来源:ICalConverter.java

示例2: fromClazz

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromClazz(PropertyList propertyList) {
    Clazz iCalObj = (Clazz) propertyList.getProperty(Clazz.CLASS);
    if (iCalObj == null) {
        return null;
    }
    return "WES_".concat(iCalObj.getValue());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例3: fromCompleted

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Timestamp fromCompleted(PropertyList propertyList) {
    Completed iCalObj = (Completed) propertyList.getProperty(Completed.COMPLETED);
    if (iCalObj == null) {
        return null;
    }
    Date date = iCalObj.getDate();
    return new Timestamp(date.getTime());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:9,代码来源:ICalConverter.java

示例4: fromDescription

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromDescription(PropertyList propertyList) {
    Description iCalObj = (Description) propertyList.getProperty(Description.DESCRIPTION);
    if (iCalObj == null) {
        return null;
    }
    return iCalObj.getValue();
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例5: fromDtEnd

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Timestamp fromDtEnd(PropertyList propertyList) {
    DtEnd iCalObj = (DtEnd) propertyList.getProperty(DtEnd.DTEND);
    if (iCalObj == null) {
        return null;
    }
    Date date = iCalObj.getDate();
    return new Timestamp(date.getTime());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:9,代码来源:ICalConverter.java

示例6: fromDtStart

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Timestamp fromDtStart(PropertyList propertyList) {
    DtStart iCalObj = (DtStart) propertyList.getProperty(DtStart.DTSTART);
    if (iCalObj == null) {
        return null;
    }
    Date date = iCalObj.getDate();
    return new Timestamp(date.getTime());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:9,代码来源:ICalConverter.java

示例7: fromDuration

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Double fromDuration(PropertyList propertyList) {
    Duration iCalObj = (Duration) propertyList.getProperty(Duration.DURATION);
    if (iCalObj == null) {
        return null;
    }
    Dur dur = iCalObj.getDuration();
    TimeDuration td = new TimeDuration(0, 0, (dur.getWeeks() * 7) + dur.getDays(), dur.getHours(), dur.getMinutes(), dur.getSeconds(), 0);
    return new Double(TimeDuration.toLong(td));
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:10,代码来源:ICalConverter.java

示例8: fromLastModified

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Timestamp fromLastModified(PropertyList propertyList) {
    LastModified iCalObj = (LastModified) propertyList.getProperty(LastModified.LAST_MODIFIED);
    if (iCalObj == null) {
        return null;
    }
    Date date = iCalObj.getDate();
    return new Timestamp(date.getTime());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:9,代码来源:ICalConverter.java

示例9: fromLocation

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromLocation(PropertyList propertyList) {
    Location iCalObj = (Location) propertyList.getProperty(Location.LOCATION);
    if (iCalObj == null) {
        return null;
    }
    return iCalObj.getValue();
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例10: fromPercentComplete

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Long fromPercentComplete(PropertyList propertyList) {
    PercentComplete iCalObj = (PercentComplete) propertyList.getProperty(PercentComplete.PERCENT_COMPLETE);
    if (iCalObj == null) {
        return null;
    }
    return new Long(iCalObj.getPercentage());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例11: fromPriority

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static Double fromPriority(PropertyList propertyList) {
    Priority iCalObj = (Priority) propertyList.getProperty(Priority.PRIORITY);
    if (iCalObj == null) {
        return null;
    }
    return new Double(iCalObj.getLevel());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例12: fromStatus

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromStatus(PropertyList propertyList) {
    Status iCalObj = (Status) propertyList.getProperty(Status.STATUS);
    if (iCalObj == null) {
        return null;
    }
    return fromStatusMap.get(iCalObj.getValue());
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例13: fromSummary

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromSummary(PropertyList propertyList) {
    Summary iCalObj = (Summary) propertyList.getProperty(Summary.SUMMARY);
    if (iCalObj == null) {
        return null;
    }
    return iCalObj.getValue();
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例14: fromUid

import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static String fromUid(PropertyList propertyList) {
    Uid iCalObj = (Uid) propertyList.getProperty(Uid.UID);
    if (iCalObj == null) {
        return null;
    }
    return iCalObj.getValue();
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:8,代码来源:ICalConverter.java

示例15: fromXProperty

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


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