it.imolinfo.jbi4corba.jbi.component.runtime
Class ServiceDescriptor

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.component.runtime.ServiceDescriptor

public class ServiceDescriptor
extends Object

This class is a data model of the service that will be used to query the information about the service used in message exchange by service consumer or provider.

Author:
Marco Piraccini

Nested Class Summary
static class ServiceDescriptor.OperationDescriptor
           
 
Constructor Summary
ServiceDescriptor()
          Creates a new instance of ServiceDescriptor
 
Method Summary
 String getEndpointName()
          Getter for property EndpointName.
 ServiceDescriptor.OperationDescriptor[] getOperations()
          Getter for property mOperations.
 ServiceDescriptor.OperationDescriptor getOperations(int index)
          Indexed getter for property Operations.
 javax.jbi.messaging.MessageExchange.Role getRole()
          Getter for property Role.
 QName getServiceName()
          Getter for property ServiceName.
 QName getServiceType()
          returns a first servicetype in the servicetype array
 QName[] getServiceTypes()
          Getter for property ServiceTypes.
 QName getServiceTypes(int index)
          Indexed getter for property ServiceTypes.
 void setEndpointName(String endpointName)
          Setter for property EndpointName.
 void setOperations(int index, ServiceDescriptor.OperationDescriptor operations)
          Indexed setter for property mOperations.
 void setOperations(ServiceDescriptor.OperationDescriptor[] operations)
          Setter for property mOperations.
 void setRole(javax.jbi.messaging.MessageExchange.Role role)
          Setter for property Role.
 void setServiceName(QName serviceName)
          Setter for property ServiceName.
 void setServiceTypes(int index, QName serviceTypes)
          Indexed setter for property mServiceTypes.
 void setServiceTypes(QName[] serviceTypes)
          Setter for property mServiceTypes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescriptor

public ServiceDescriptor()
Creates a new instance of ServiceDescriptor

Method Detail

getEndpointName

public String getEndpointName()
Getter for property EndpointName.

Returns:
Value of property EndpointName.

setEndpointName

public void setEndpointName(String endpointName)
Setter for property EndpointName.

Parameters:
endpointName - New value of property EndpointName.

getServiceName

public QName getServiceName()
Getter for property ServiceName.

Returns:
Value of property ServiceName.

setServiceName

public void setServiceName(QName serviceName)
Setter for property ServiceName.

Parameters:
serviceName - New value of property mServiceName.

getRole

public javax.jbi.messaging.MessageExchange.Role getRole()
Getter for property Role.

Returns:
Value of property Role.

setRole

public void setRole(javax.jbi.messaging.MessageExchange.Role role)
Setter for property Role.

Parameters:
role - New value of property Role.

getServiceTypes

public QName getServiceTypes(int index)
Indexed getter for property ServiceTypes.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getServiceTypes

public QName[] getServiceTypes()
Getter for property ServiceTypes.

Returns:
Value of property ServiceTypes.

setServiceTypes

public void setServiceTypes(int index,
                            QName serviceTypes)
Indexed setter for property mServiceTypes.

Parameters:
index - Index of the property.
serviceTypes - New value of the property at index.

setServiceTypes

public void setServiceTypes(QName[] serviceTypes)
Setter for property mServiceTypes.

Parameters:
serviceTypes - New value of property ServiceTypes.

getServiceType

public QName getServiceType()
returns a first servicetype in the servicetype array

Returns:
service type Qname or null if no servicetypes are initialized

getOperations

public ServiceDescriptor.OperationDescriptor getOperations(int index)
Indexed getter for property Operations.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getOperations

public ServiceDescriptor.OperationDescriptor[] getOperations()
Getter for property mOperations.

Returns:
Value of property mOperations.

setOperations

public void setOperations(int index,
                          ServiceDescriptor.OperationDescriptor operations)
Indexed setter for property mOperations.

Parameters:
index - Index of the property.
operations - New value of the property at index.

setOperations

public void setOperations(ServiceDescriptor.OperationDescriptor[] operations)
Setter for property mOperations.

Parameters:
operations - New value of property mOperations.


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.