Examples of XProperty


Examples of net.fortuna.ical4j.model.property.XProperty

        linkEncoded.append(link.getDisplayName());
        linkEncoded.append("§");
        linkEncoded.append(link.getURI());
        linkEncoded.append("§");
        linkEncoded.append(link.getIconCssClass());
        XProperty linkProperty = new XProperty(ICAL_X_OLAT_LINK, linkEncoded.toString());
        vEventProperties.add(linkProperty);
      }
    }
   
    if (kEvent.getComment() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_COMMENT, kEvent.getComment()));
    }
    if (kEvent.getNumParticipants() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_NUMPARTICIPANTS, Integer.toString(kEvent.getNumParticipants())));
    }
    if (kEvent.getParticipants() != null) {
      StringBuffer strBuf = new StringBuffer();
      String[] participants = kEvent.getParticipants();
      for ( String participant : participants ) {
        strBuf.append(participant);
        strBuf.append("§");
      }
      vEventProperties.add(new XProperty(ICAL_X_OLAT_PARTICIPANTS, strBuf.toString()));
    }
    if (kEvent.getSourceNodeId() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_SOURCENODEID, kEvent.getSourceNodeId()));
    }
   
    // recurrence
    String recurrence = kEvent.getRecurrenceRule();
    if(recurrence != null && !recurrence.equals("")) {
View Full Code Here

Examples of net.fortuna.ical4j.model.property.XProperty

   
    // links if any
    List linkProperties = event.getProperties(ICAL_X_OLAT_LINK);
    List kalendarEventLinks = new ArrayList();
    for (Iterator iter = linkProperties.iterator(); iter.hasNext();) {
      XProperty linkProperty = (XProperty) iter.next();
      if (linkProperty != null) {
        String encodedLink = linkProperty.getValue();
        StringTokenizer st = new StringTokenizer(encodedLink, "§", false);
        if (st.countTokens() >= 4) {
          String provider = st.nextToken();
          String id = st.nextToken();
          String displayName = st.nextToken();
View Full Code Here

Examples of net.fortuna.ical4j.model.property.XProperty

            }
            if (newAlarm) {
                alarm = createAlarm(reminder);
                alarms.add(alarm);
                alarmProps = alarm.getProperties();
                alarmProps.add(new XProperty(reminderXPropName, reminderId));
            }
            GenericValue contactMech = reminder.getRelatedOne("ContactMech");
            if (contactMech != null && "EMAIL_ADDRESS".equals(contactMech.get("contactMechTypeId"))) {
                try {
                    alarmProps.add(new Attendee(contactMech.getString("infoString")));
View Full Code Here

Examples of net.fortuna.ical4j.model.property.XProperty

                calendar = new Calendar();
            }
        }
        PropertyList propList = calendar.getProperties();
        replaceProperty(propList, prodId);
        replaceProperty(propList, new XProperty(workEffortIdXPropName, workEffort.getString("workEffortId")));
        if (newCalendar) {
            propList.add(Version.VERSION_2_0);
            propList.add(CalScale.GREGORIAN);
            // TODO: Get time zone from publish properties value
            java.util.TimeZone tz = java.util.TimeZone.getDefault();
View Full Code Here

Examples of net.fortuna.ical4j.model.property.XProperty

    protected static XProperty toXProperty(String name, String value) {
        if (name == null || value == null) {
            return null;
        }
        return new XProperty(name, value);
    }
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XProperty

      String[] columnsNames = new String[columns.size()];
      for ( int i = 0; i < columns.size(); i++ ) {
        columnsNames[i] = ( (Column) columns.get( i ) ).getName();
      }

      final XProperty xProperty = (XProperty) typeParameters.get( DynamicParameterizedType.XPROPERTY );
      // todo : not sure this works for handling @MapKeyEnumerated
      final Annotation[] annotations = xProperty == null
          ? null
          : xProperty.getAnnotations();

      typeParameters.put(
          DynamicParameterizedType.PARAMETER_TYPE,
          new ParameterTypeImpl(
              ReflectHelper.classForName(
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XProperty

          "@IdClass class should not have @Id nor @EmbeddedId properties: "
              + BinderHelper.getPath( propertyHolder, inferredData )
      );
    }
    XClass returnedClass = inferredData.getClassOrElement();
    XProperty property = inferredData.getProperty();
    //clone classGenerator and override with local values
    HashMap<String, IdGenerator> localGenerators = ( HashMap<String, IdGenerator> ) classGenerators.clone();
    localGenerators.putAll( buildLocalGenerators( property, mappings ) );

    //manage composite related metadata
    //guess if its a component and find id data access (property, field etc)
    final boolean isComponent = returnedClass.isAnnotationPresent( Embeddable.class )
        || property.isAnnotationPresent( EmbeddedId.class );

    GeneratedValue generatedValue = property.getAnnotation( GeneratedValue.class );
    String generatorType = generatedValue != null ?
        generatorType( generatedValue.strategy(), mappings ) :
        "assigned";
    String generatorName = generatedValue != null ?
        generatedValue.generator() :
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XProperty

                + " has no persistent id property: "
                + BinderHelper.getPath( propertyHolder, inferredData )
        );
      }
    }
    XProperty property = inferredData.getProperty();
    setupComponentTuplizer( property, comp );
    PropertyBinder binder = new PropertyBinder();
    binder.setName( inferredData.getPropertyName() );
    binder.setValue( comp );
    binder.setProperty( inferredData.getProperty() );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XProperty

          propertyAnnotatedElement,
          new HashMap<String, IdGenerator>(), entityBinder, isIdentifierMapper, isComponentEmbedded,
          inSecondPass, mappings, inheritanceStatePerClass
      );

      XProperty property = propertyAnnotatedElement.getProperty();
      if ( property.isAnnotationPresent( GeneratedValue.class ) &&
          property.isAnnotationPresent( Id.class ) ) {
        //clone classGenerator and override with local values
        Map<String, IdGenerator> localGenerators = new HashMap<String, IdGenerator>();
        localGenerators.putAll( buildLocalGenerators( property, mappings ) );

        GeneratedValue generatedValue = property.getAnnotation( GeneratedValue.class );
        String generatorType = generatedValue != null ? generatorType(
            generatedValue.strategy(), mappings
        ) : "assigned";
        String generator = generatedValue != null ? generatedValue.generator() : BinderHelper.ANNOTATION_STRING_DEFAULT;

        BinderHelper.makeIdGenerator(
            ( SimpleValue ) comp.getProperty( property.getName() ).getValue(),
            generatorType,
            generator,
            mappings,
            localGenerators
        );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XProperty

      }
      if ( componentId.getPropertySpan() == 0 ) {
        throw new AnnotationException( componentId.getComponentClassName() + " has no persistent id property" );
      }
      //tuplizers
      XProperty property = inferredData.getProperty();
      setupComponentTuplizer( property, componentId );
    }
    else {
      //TODO I think this branch is never used. Remove.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.