com.gisgraphy.fulltext
Class FulltextErrorVisitor
java.lang.Object
com.gisgraphy.fulltext.FulltextErrorVisitor
- All Implemented Interfaces:
- com.gisgraphy.serializer.common.IoutputFormatVisitor
public class FulltextErrorVisitor
- extends Object
- implements com.gisgraphy.serializer.common.IoutputFormatVisitor
Visitor (visitor pattern) to return error message according to the format for
the fulltext service
- Author:
- David Masclet
Fields inherited from interface com.gisgraphy.serializer.common.IoutputFormatVisitor |
DEFAULT_ERROR_MESSAGE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FulltextErrorVisitor
public FulltextErrorVisitor()
FulltextErrorVisitor
public FulltextErrorVisitor(String errorMessage)
- Parameters:
errorMessage
- The error Message
visitXML
public String visitXML(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitXML
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitJSON
public String visitJSON(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitJSON
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitPYTHON
public String visitPYTHON(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitPYTHON
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitRUBY
public String visitRUBY(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitRUBY
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitPHP
public String visitPHP(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitPHP
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitATOM
public String visitATOM(com.gisgraphy.serializer.common.OutputFormat outputFormat)
- Specified by:
visitATOM
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitGEORSS
public String visitGEORSS(com.gisgraphy.serializer.common.OutputFormat outputFormat)
- Specified by:
visitGEORSS
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitUNSUPPORTED
public String visitUNSUPPORTED(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitUNSUPPORTED
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
visitYAML
public String visitYAML(com.gisgraphy.serializer.common.OutputFormat format)
- Specified by:
visitYAML
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessage
in interface com.gisgraphy.serializer.common.IoutputFormatVisitor
Copyright © 2012. All Rights Reserved.