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

jadex.bpmn.model.MAnnotationElement Maven / Gradle / Ivy

The newest version!
package jadex.bpmn.model;

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

/**
 *  Base class for annotated elements.
 */
public class MAnnotationElement extends MIdElement
{
	//-------- attributes --------
	
	/** The annotations. */
	protected List annotations;

	//-------- methods --------
	
	/**
	 *  Add an annotation.
	 *  @param annotation The annotation.
	 */
	public void addAnnotation(MAnnotation annotation)
	{
		if(annotations==null)
			annotations = new ArrayList();
		annotations.add(annotation);
	}
	
	/**
	 *  Get the annotations.
	 *  @return The annotations.
	 */
	public List getAnnotations()
	{		
		return annotations;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy