Package org.scijava.parse
Class DefaultParseService
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.service.AbstractService
-
- org.scijava.parse.DefaultParseService
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Initializable,Locatable,Logged,ParseService,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,Versioned
public class DefaultParseService extends AbstractService implements ParseService
Default service for parsing strings.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DefaultParseService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Itemsparse(String arg, boolean strict)Parses a comma-delimited list of data elements.-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.parse.ParseService
parse
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
parse
public Items parse(String arg, boolean strict)
Description copied from interface:ParseServiceParses a comma-delimited list of data elements.Some data elements might be
key=valuepairs, while others might be raw values (i.e., no equals sign).- Specified by:
parsein interfaceParseService- Parameters:
arg- The string to parse.strict- Whether to fail fast when encountering an unassigned variable token.- Returns:
- A parsed list of
Items.
-
-