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

org.eclipse.dawnsci.nexus.NXnote Maven / Gradle / Ivy

/*-
 *******************************************************************************
 * Copyright (c) 2015 Diamond Light Source Ltd.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * This file was auto-generated from the NXDL XML definition.
 *******************************************************************************/

package org.eclipse.dawnsci.nexus;

import java.util.Date;

import org.eclipse.dawnsci.analysis.api.tree.DataNode;
import org.eclipse.january.dataset.IDataset;

/**
 * Any additional freeform information not covered by the other base classes.
 * This class can be used to store additional information in a
 * NeXus file e.g. pictures, movies, audio, additional text logs
 * 
 */
public interface NXnote extends NXobject {

	public static final String NX_AUTHOR = "author";
	public static final String NX_DATE = "date";
	public static final String NX_TYPE = "type";
	public static final String NX_FILE_NAME = "file_name";
	public static final String NX_DESCRIPTION = "description";
	public static final String NX_SEQUENCE_INDEX = "sequence_index";
	public static final String NX_DATA = "data";
	/**
	 * Author or creator of note
	 * 
	 * @return  the value.
	 */
	public IDataset getAuthor();
	
	/**
	 * Author or creator of note
	 * 
	 * @param author the author
	 */
	public DataNode setAuthor(IDataset author);

	/**
	 * Author or creator of note
	 * 
	 * @return  the value.
	 */
	public String getAuthorScalar();

	/**
	 * Author or creator of note
	 * 
	 * @param author the author
	 */
	public DataNode setAuthorScalar(String author);

	/**
	 * Date note created/added
	 * 

* Type: NX_DATE_TIME *

* * @return the value. */ public IDataset getDate(); /** * Date note created/added *

* Type: NX_DATE_TIME *

* * @param date the date */ public DataNode setDate(IDataset date); /** * Date note created/added *

* Type: NX_DATE_TIME *

* * @return the value. */ public Date getDateScalar(); /** * Date note created/added *

* Type: NX_DATE_TIME *

* * @param date the date */ public DataNode setDateScalar(Date date); /** * Mime content type of note data field e.g. image/jpeg, text/plain, text/html * * @return the value. */ public IDataset getType(); /** * Mime content type of note data field e.g. image/jpeg, text/plain, text/html * * @param type the type */ public DataNode setType(IDataset type); /** * Mime content type of note data field e.g. image/jpeg, text/plain, text/html * * @return the value. */ public String getTypeScalar(); /** * Mime content type of note data field e.g. image/jpeg, text/plain, text/html * * @param type the type */ public DataNode setTypeScalar(String type); /** * Name of original file name if note was read from an external source * * @return the value. */ public IDataset getFile_name(); /** * Name of original file name if note was read from an external source * * @param file_name the file_name */ public DataNode setFile_name(IDataset file_name); /** * Name of original file name if note was read from an external source * * @return the value. */ public String getFile_nameScalar(); /** * Name of original file name if note was read from an external source * * @param file_name the file_name */ public DataNode setFile_nameScalar(String file_name); /** * Title of an image or other details of the note * * @return the value. */ public IDataset getDescription(); /** * Title of an image or other details of the note * * @param description the description */ public DataNode setDescription(IDataset description); /** * Title of an image or other details of the note * * @return the value. */ public String getDescriptionScalar(); /** * Title of an image or other details of the note * * @param description the description */ public DataNode setDescriptionScalar(String description); /** * Sequence index of note, for placing a sequence of * multiple **NXnote** groups in an order. Starts with 1. *

* Type: NX_POSINT *

* * @return the value. */ public IDataset getSequence_index(); /** * Sequence index of note, for placing a sequence of * multiple **NXnote** groups in an order. Starts with 1. *

* Type: NX_POSINT *

* * @param sequence_index the sequence_index */ public DataNode setSequence_index(IDataset sequence_index); /** * Sequence index of note, for placing a sequence of * multiple **NXnote** groups in an order. Starts with 1. *

* Type: NX_POSINT *

* * @return the value. */ public Long getSequence_indexScalar(); /** * Sequence index of note, for placing a sequence of * multiple **NXnote** groups in an order. Starts with 1. *

* Type: NX_POSINT *

* * @param sequence_index the sequence_index */ public DataNode setSequence_indexScalar(Long sequence_index); /** * Binary note data - if text, line terminator is [CR][LF]. *

* Type: NX_BINARY *

* * @return the value. */ public IDataset getData(); /** * Binary note data - if text, line terminator is [CR][LF]. *

* Type: NX_BINARY *

* * @param data the data */ public DataNode setData(IDataset data); /** * Binary note data - if text, line terminator is [CR][LF]. *

* Type: NX_BINARY *

* * @return the value. */ public Object getDataScalar(); /** * Binary note data - if text, line terminator is [CR][LF]. *

* Type: NX_BINARY *

* * @param data the data */ public DataNode setDataScalar(Object data); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy