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

org.activecomponents.webservice.ServiceInfo Maven / Gradle / Ivy

There is a newer version: 4.0.267
Show newest version
package org.activecomponents.webservice;

import java.util.HashSet;
import java.util.Set;

import jadex.bridge.service.IServiceIdentifier;

/**
 *  Service info.
 *  Provides also method names because otherwise JS side would have to inspect Java interfaces.
 */
public class ServiceInfo
{
	/** The service identifier. */
	protected IServiceIdentifier sid;
	
	/** The method names. */
	protected Set methodnames = new HashSet();
	
	/**
	 *  Create the service proxy.
	 */
	public ServiceInfo()
	{
	}
	
	/**
	 *  Create the service proxy.
	 *  @param sid The service identifier.
	 *  @param methodnames The method names.
	 */
	public ServiceInfo(IServiceIdentifier sid, Set methodnames)
	{
		this.sid = sid;
		this.methodnames = methodnames;
	}

	/**
	 *  Get the methodNames.
	 *  @return The methodNames
	 */
	public Set getMethodNames()
	{
		return methodnames;
	}

	/**
	 *  Set the methodNames.
	 *  @param methodnames The methodNames to set
	 */
	public void setMethodNames(Set methodnames)
	{
		this.methodnames = methodnames;
	}

	/**
	 *  Get the serviceIdentifier.
	 *  @return The serviceIdentifier
	 */
	public IServiceIdentifier getServiceIdentifier()
	{
		return sid;
	}

	/**
	 *  Set the serviceIdentifier.
	 *  @param sid The serviceIdentifier to set
	 */
	public void setServiceIdentifier(IServiceIdentifier sid)
	{
		this.sid = sid;
	}
	
	/**
	 *  Get the serviceIdentifier.
	 *  @return The serviceIdentifier
	 */
	public String getServiceIdentifierString()
	{
		return ""+sid;
	}

	/**
	 *  Set the serviceIdentifier.
	 *  @param sid The serviceIdentifier to set
	 */
	public void setServiceIdentifierString(String sid)
	{
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy