All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.constants.CalendarNoteOpen Maven / Gradle / Ivy

The newest version!
package com.mindoo.domino.jna.constants;

import java.util.EnumSet;

import com.mindoo.domino.jna.internal.NotesConstants;

/**
 * Flags that control behavior of the calendar APIs - Used when opening a note handle for calendar data.
 * 
 * @author Karsten Lehmann
 */
public enum CalendarNoteOpen {
	
	/**
	 * Used when getting a handle via CalOpenNoteHandle (Handy for read-only cases)
* When a specific instance of a recurring entry is requested, the underlying note may * represent multiple instances.
*
* Default behavior makes appropriate modifications so that the returned handle represents * a single instance (but this might cause notes to be created or modified as a side effect).
*
* Using {@link #HANDLE_NOSPLIT} will bypass any note creations or modifications and return a * note handle that may represent more than a single instance on the calendar. */ HANDLE_NOSPLIT(NotesConstants.CAL_NOTEOPEN_HANDLE_NOSPLIT); private int m_val; CalendarNoteOpen(int val) { m_val = val; } public int getValue() { return m_val; } public static int toBitMask(EnumSet findSet) { int result = 0; if (findSet!=null) { for (CalendarNoteOpen currFind : values()) { if (findSet.contains(currFind)) { result = result | currFind.getValue(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy