uk.ac.ebi.microarray.zooma.service.impl
Class BasicZoomaService
java.lang.Object
uk.ac.ebi.microarray.zooma.service.impl.BasicZoomaService
- All Implemented Interfaces:
- ZoomaService
@ZoomaMappingGenerator(mode="json")
public class BasicZoomaService
- extends java.lang.Object
- implements ZoomaService
A basic implementation of a zooma service. This class is a ZoomaMappingGenerator
; this means it
can legitimately be used on the command line to generate serialized JSON
objects - the
- Author:
- Tony Burdett
Field Summary |
protected org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
BasicZoomaService
public BasicZoomaService()
getMapper
public JSONOntologyMapper getMapper()
setMapper
public void setMapper(JSONOntologyMapper mapper)
getLog
protected org.slf4j.Logger getLog()
generateMappings
public net.sf.json.JSONObject generateMappings(java.lang.String value)
throws BadOutcomeException
- Generates a JSON object that encapsulates any mappings generated by ZOOMA
for the value specified.
- Specified by:
generateMappings
in interface ZoomaService
- Parameters:
value
- the text value to map
- Returns:
- a JSON object describing this mapping
- Throws:
BadOutcomeException
- if the outcome could not be generated
generateJSONMappingObject
@ZoomaMappingOperation(operation="generate",
shortName="g",
description="generates a JSON object describing the mappings from the supplied text value")
public boolean generateJSONMappingObject(@ZoomaMappingArgument(name="report-directory",shortName="d",description="The directory in which reports will be written",required=false)
java.lang.String reportDirectory,
@ZoomaMappingArgument(name="value",shortName="v",description="The value to map")
java.lang.String value)
Copyright © 2010. All Rights Reserved.