2.17.2: 2011-06-17

net.sf.basedb.ws.client
Class AnnotationTypeClient

java.lang.Object
  extended by net.sf.basedb.ws.client.AbstractRPCClient
      extended by net.sf.basedb.ws.client.AnnotationTypeClient

public class AnnotationTypeClient
extends AbstractRPCClient

Web service client for annotation types. Calls services in AnnotationTypeService

Version:
2.5
Author:
Nicklas

Field Summary
private  SessionClient session
           
 
Constructor Summary
AnnotationTypeClient(SessionClient session)
          Creates new AnnotationTypeClient object for an active session client.
 
Method Summary
 AnnotationTypeInfo[] getAnnotationTypes(String itemType, QueryOptions qOpt)
          Gets info about each projects that are available for the active session client.
 AnnotationTypeInfo getById(int itemId)
          Get info about an annotation type when you know the ID.
 
Methods inherited from class net.sf.basedb.ws.client.AbstractRPCClient
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final SessionClient session
Constructor Detail

AnnotationTypeClient

public AnnotationTypeClient(SessionClient session)
Creates new AnnotationTypeClient object for an active session client.

Parameters:
session - The active session client
Method Detail

getById

public AnnotationTypeInfo getById(int itemId)
                           throws org.apache.axis2.AxisFault
Get info about an annotation type when you know the ID.

Parameters:
itemId - The ID of the annotation type
Returns:
An AnnotationTypeInfo object
Throws:
org.apache.axis2.AxisFault - If communication with web service fails.

getAnnotationTypes

public AnnotationTypeInfo[] getAnnotationTypes(String itemType,
                                               QueryOptions qOpt)
                                        throws org.apache.axis2.AxisFault
Gets info about each projects that are available for the active session client.

Parameters:
itemType - The name of the item type as defined by Enum.name() or null to return annotation types for all item types
qOpt - Options to put on the query
Returns:
An array with a info object for each annotation type
Throws:
org.apache.axis2.AxisFault - If communication with web service fails.

2.17.2: 2011-06-17