Package org.scijava.parse
Interface ParseService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,SciJavaService,Service,Versioned
- All Known Implementing Classes:
DefaultParseService
public interface ParseService extends SciJavaService
Interface for service that parses strings.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Itemsparse(String arg)Parses a comma-delimited list of data elements.Itemsparse(String arg, boolean strict)Parses a comma-delimited list of data elements.-
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.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
default Items parse(String arg)
Parses 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).- Parameters:
arg- The string to parse.- Returns:
- A parsed list of
Items. - Throws:
IllegalArgumentException- If the string does not conform to expected syntax.
-
parse
Items parse(String arg, boolean strict)
Parses 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).- Parameters:
arg- The string to parse.strict- Whether to fail fast when encountering an unassigned variable token.- Returns:
- A parsed list of
Items. - Throws:
IllegalArgumentException- If the string does not conform to expected syntax.
-
-