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

org.eclipse.dawnsci.nexus.impl.NXreflectionsImpl 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.impl;

import java.util.EnumSet;
import java.util.Map;
import java.util.Set;

import org.eclipse.dawnsci.nexus.NXentry;
import org.eclipse.dawnsci.nexus.NXobject;
import org.eclipse.dawnsci.nexus.NXreflections;
import org.eclipse.dawnsci.nexus.NexusBaseClass;

/**
 * This is a definition for reflection data from diffraction experiments
 * 
 */
public class NXreflectionsImpl extends NXobjectImpl implements NXreflections {

	private static final long serialVersionUID = 1L;  // no state in this class, so always compatible


	public static final Set PERMITTED_CHILD_GROUP_CLASSES = EnumSet.of(
		NexusBaseClass.NX_ENTRY);

	public NXreflectionsImpl() {
		super();
	}

	public NXreflectionsImpl(final long oid) {
		super(oid);
	}
	
	@Override
	public Class getNXclass() {
		return NXreflections.class;
	}
	
	@Override
	public NexusBaseClass getNexusBaseClass() {
		return NexusBaseClass.NX_REFLECTIONS;
	}
	
	@Override
	public Set getPermittedChildGroupClasses() {
		return PERMITTED_CHILD_GROUP_CLASSES;
	}
	

	@Override
	public NXentry getEntry() {
		return getChild("entry", NXentry.class);
	}

	@Override
	public void setEntry(NXentry entry) {
		putChild("entry", entry);
	}

	@Override
	public NXentry getEntry(String name) {
		return getChild(name, NXentry.class);
	}

	@Override
	public void setEntry(String name, NXentry entry) {
		putChild(name, entry);
	}

	@Override
	public Map getAllEntry() {
		return getChildren(NXentry.class);
	}
	
	@Override
	public void setAllEntry(Map entry) {
		setChildren(entry);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy