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

de.rpgframework.genericrpg.data.Module Maven / Gradle / Ivy

The newest version!
package de.rpgframework.genericrpg.data;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.prelle.simplepersist.Element;

import de.rpgframework.genericrpg.modification.Modification;
import de.rpgframework.genericrpg.requirements.Requirement;

/**
 * @author prelle
 *
 */
public abstract class Module extends DataItem {
	
	@Element
	protected List modifications;
	
	@Element
	protected List requirements;

	//-------------------------------------------------------------------
	protected Module() {
		super();
		// TODO Auto-generated constructor stub
	}

	//-------------------------------------------------------------------
	public Collection getModifications() {
		if (modifications==null) return new ArrayList();
		return new ArrayList(modifications);
	}

	//-------------------------------------------------------------------
	public Collection getRequirement() {
		if (requirements==null) return new ArrayList();
		return new ArrayList(requirements);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy