net.sf.basedb.ws.client
Class AnnotationTypeClient
java.lang.Object
net.sf.basedb.ws.client.AbstractRPCClient
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
private final SessionClient session
AnnotationTypeClient
public AnnotationTypeClient(SessionClient session)
- Creates new AnnotationTypeClient object for an active session client.
- Parameters:
session
- The active session client
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 typesqOpt
- 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.