public class ServiceMappingGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The name of this class
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ServiceMappingGroup()
Constructs an empty service mapping group
|
ServiceMappingGroup(java.lang.String groupName, java.lang.String serviceName, ServiceMapping[] mappings, java.lang.Class serviceInputType, java.lang.Class defaultNounType, java.lang.Class verbType)
Construct a service mapping group with given configuration.
|
Modifier and Type | Method and Description |
---|---|
void | addServiceMapping(ServiceMapping mapping)
Add a ServiceMapping to the service mapping group
|
void | addServiceMappings(java.util.List mappingList)
Adds the mappings for the mapping group
|
void | addServiceMappings(ServiceMapping[] mappings)
Adds a list of mappings for the mapping group
|
java.util.Collection | getAllMappings()
Retrieves all the mappings in this mapping group.
|
java.lang.Class | getDefaultNounType() |
java.lang.String | getName()
Retrieves the name of this service mapping group
|
java.lang.Class | getServiceInputType()
Retrieves the service input type
|
ServiceMapping | getServiceMapping(java.lang.String source)
Retrieves the ServiceMapping object that has the given source
|
java.lang.String | getServiceName()
Retrieves the name of this service
|
java.lang.Class | getVerbType() |
boolean | hasName()
Determines if this service mapping group has a valid name.
|
static boolean | isValidName(java.lang.String name)
Determines if a string is valid for service name or group name.
|
void | setDefaultNounType(java.lang.Class nounType)
Sets the default noun type for this mapping group
|
void | setName(java.lang.String name)
Sets the name of the mapping group.
|
void | setServiceInputType(java.lang.Class serviceInputType)
Sets the input type of a the service that has the service name of this mapping group
|
void | setServiceMappings(ServiceMapping[] mappings)
Sets the service mappings to the given one
|
void | setServiceName(java.lang.String serviceName)
Sets the name of the mapped service.
|
void | setVerbType(java.lang.Class verbType)
Sets the verb type for this group
|
java.lang.String | toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public ServiceMappingGroup()
public ServiceMappingGroup(java.lang.String groupName, java.lang.String serviceName, ServiceMapping[] mappings, java.lang.Class serviceInputType, java.lang.Class defaultNounType, java.lang.Class verbType)
public void addServiceMappings(ServiceMapping[] mappings)
public void setServiceMappings(ServiceMapping[] mappings)
public void addServiceMappings(java.util.List mappingList)
public void addServiceMapping(ServiceMapping mapping)
public java.util.Collection getAllMappings()
public java.lang.String getName()
public java.lang.String getServiceName()
public ServiceMapping getServiceMapping(java.lang.String source)
public void setServiceName(java.lang.String serviceName)
public void setName(java.lang.String name)
public void setServiceInputType(java.lang.Class serviceInputType)
public java.lang.Class getServiceInputType()
public static final boolean isValidName(java.lang.String name)
public boolean hasName()
public java.lang.String toString()
public java.lang.Class getDefaultNounType()
public void setDefaultNounType(java.lang.Class nounType)
public java.lang.Class getVerbType()
public void setVerbType(java.lang.Class verbType)