Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / models / webServices / Service.java
package models.webServices;

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

import models.dataConstraintModel.IdentifierTemplate;

public class Service {
	private String name = null;
	private ArrayList<IdentifierTemplate> identifireTemplates = null;

	
	/**
	* [Constructor]
	* identifireTemplates are Empty
	* 
	* @param name : it's Web services name.
	* 
	*/
	public Service(final String name) {
		this.name = name;
		this.identifireTemplates = new ArrayList<>();
	}

	/**
	* [Constructor]
	* 
	* @param name 				 : it's Web services name.
	* @param identifierTemplates : the list of resources which formal model of DTRAM.
	*/
	public Service(final String name, final ArrayList<IdentifierTemplate> identifierTemplates) {
		this.name = name;
		this.identifireTemplates = identifierTemplates;
	}
	
	/**
	* [getter]
	* 
	* @return you'll get name of service.
	*/
	public String getName() {
		return this.name;
	}

	/**
	* [getter]
	* 
	* @return you'll get list of an identifier template.
	*/
	public List<IdentifierTemplate> getIdentifierTemplates(){
		return this.identifireTemplates;
	}
}