Package adams.flow.webservice.meka
Class DisplayClassifier
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientSource<String>
-
- adams.flow.webservice.meka.DisplayClassifier
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler
,adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.ErrorProvider
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,AlternativeUrlSupporter
,WebServiceClient
,WebServiceClientProducer<String>
,WsdlUrlProvider
,Serializable
public class DisplayClassifier extends AbstractWebServiceClientSource<String>
Displays the string representation of a built classifier model.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Classifier
name of model to displayprotected MekaService
m_Port
the port instance.protected MekaServiceService
m_Service
the service instance.-
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientSource
m_AlternativeURL, m_ConnectionTimeout, m_InInterceptor, m_LastError, m_Owner, m_ReceiveTimeout, m_ResponseData, m_ResponseDataListeners, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description DisplayClassifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
classifierTipText()
Description of this option.void
cleanUp()
Cleans up the client.void
defineOptions()
Adds options to the internal list of options.protected void
doQuery()
Performs the actual webservice query.Class[]
generates()
Returns the classes that this client generates.String
getClassifier()
get the name of the classifier to display.URL
getWsdlLocation()
Returns the WSDL location.String
globalInfo()
Returns a string describing the object.protected void
reset()
Resets the scheme.void
setClassifier(String s)
set the name of the classifier to display.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientSource
addResponseDataListener, alternativeURLTipText, connectionTimeoutTipText, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultInInterceptor, getInInterceptor, getLastError, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, inInterceptorTipText, initialize, notifyResponseDataListeners, postQuery, preQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setInInterceptor, setOwner, setReceiveTimeout, setResponseData, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Classifier
protected String m_Classifier
name of model to display
-
m_Service
protected transient MekaServiceService m_Service
the service instance.
-
m_Port
protected transient MekaService m_Port
the port instance.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractWebServiceClientSource<String>
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classadams.core.option.AbstractOptionHandler
-
setClassifier
public void setClassifier(String s)
set the name of the classifier to display.- Parameters:
s
- name of classifier
-
getClassifier
public String getClassifier()
get the name of the classifier to display.- Returns:
- name of classifier
-
classifierTipText
public String classifierTipText()
Description of this option.- Returns:
- description of the classifier option
-
generates
public Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.- Specified by:
getWsdlLocation
in interfaceWsdlUrlProvider
- Specified by:
getWsdlLocation
in classAbstractWebServiceClientSource<String>
- Returns:
- the location
-
doQuery
protected void doQuery() throws Exception
Performs the actual webservice query.- Specified by:
doQuery
in classAbstractWebServiceClientSource<String>
- Throws:
Exception
- if accessing webservice fails for some reason
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classAbstractWebServiceClientSource<String>
-
-