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

org.yaoqiang.bpmn.model.elements.data.Property Maven / Gradle / Ivy

package org.yaoqiang.bpmn.model.elements.data;

import org.yaoqiang.bpmn.model.elements.XMLAttribute;
import org.yaoqiang.bpmn.model.elements.core.foundation.BaseElement;

/**
 * Property
 * 
 * @author Shi Yaoqiang([email protected])
 */
public class Property extends BaseElement implements ItemAwareElement {

	private static final long serialVersionUID = 6282380399129605144L;

	public Property(Properties parent) {
		super(parent, "property");
	}

	protected void fillStructure() {
		XMLAttribute attrName = new XMLAttribute(this, "name");
		XMLAttribute attrItemSubjectRef = new XMLAttribute(this, "itemSubjectRef");
		DataState refDataState = new DataState(this);

		super.fillStructure();
		add(attrItemSubjectRef);
		add(refDataState);
		add(attrName);
	}

	public Properties getParent() {
		return (Properties) parent;
	}

	public final String getItemSubjectRef() {
		return get("itemSubjectRef").toValue();
	}

	public final String getDataState() {
		return ((DataState) get("dataState")).getName();
	}

	public final void setDataState(String dataState) {
		((DataState) get("dataState")).setName(dataState);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy