Package net.fortuna.ical4j.model

Examples of net.fortuna.ical4j.model.Property


        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")));
View Full Code Here


    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);
    }
View Full Code Here

        ResponseProperties responseProps = null;
        for (Component component : components) {
            if (Component.VEVENT.equals(component.getName()) || Component.VTODO.equals(component.getName())) {
                workEffortId = fromXProperty(component.getProperties(), workEffortIdXPropName);
                if (workEffortId == null) {
                    Property uid = component.getProperty(Uid.UID);
                    if (uid != null) {
                        GenericValue workEffort = EntityUtil.getFirst(delegator.findByAnd("WorkEffort", UtilMisc.toMap("universalId", uid.getValue())));
                        if (workEffort != null) {
                            workEffortId = workEffort.getString("workEffortId");
                        }
                    }
                }
View Full Code Here

            return null;
        }
        Iterator<Component> i = UtilGenerics.cast(resultList.iterator());
        while (i.hasNext()) {
            result = i.next();
            Property xProperty = result.getProperty(workEffortIdXPropName);
            if (xProperty != null && workEffortId.equals(xProperty.getValue())) {
                newComponent = false;
                break;
            }
            Property uid = result.getProperty(Uid.UID);
            if (uid != null && uid.getValue().equals(workEffortUid)) {
                newComponent = false;
                break;
            }
        }
        if (isTask) {
View Full Code Here

        rdfHandler.handleStatement(createStatement(uri,prop,r_location));
    }

    private void createStringProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            Literal v_description = createLiteral(description.getValue(), null, null);
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

        }
    }

    private void createIntProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            Literal v_description = createLiteral(description.getValue(), null, createURI("http://www.w3.org/2001/XMLSchema#int"));
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

    }


    private void createUrlProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            URI v_description = createURI(description.getValue());
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

        rdfHandler.handleStatement(createStatement(uri,prop,r_location));
    }

    private void createStringProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            Literal v_description = createLiteral(description.getValue(), null, null);
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

        }
    }

    private void createIntProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            Literal v_description = createLiteral(description.getValue(), null, createURI("http://www.w3.org/2001/XMLSchema#int"));
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

    }


    private void createUrlProperty(CalendarComponent event, Resource r_event, String icalProperty, String rdfProperty) throws RDFParseException, RDFHandlerException {
        if(event.getProperty(icalProperty) != null) {
            Property description = event.getProperty(icalProperty);
            URI p_description = createURI(rdfProperty);
            URI v_description = createURI(description.getValue());
            rdfHandler.handleStatement(createStatement(r_event,p_description,v_description));
        }
    }
View Full Code Here

TOP

Related Classes of net.fortuna.ical4j.model.Property

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.