- java.lang.Object
-
- org.scijava.ops.engine.yaml.impl.AbstractYAMLOpInfo
-
- All Implemented Interfaces:
Comparable<OpInfo>,OpInfo
- Direct Known Subclasses:
YAMLOpClassInfo,YAMLOpFieldInfo,YAMLOpMethodInfo
public abstract class AbstractYAMLOpInfo extends Object implements OpInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected Hintshintsprotected Stringidentifierprotected List<String>namesprotected Doublepriorityprotected Stringversionprotected Map<String,Object>yaml-
Fields inherited from interface org.scijava.ops.api.OpInfo
IMPL_DECLARATION
-
-
Constructor Summary
Constructors Constructor Description AbstractYAMLOpInfo(Map<String,Object> yaml, String identifier)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description HintsdeclaredHints()Stringdescription()booleanequals(Object o)inthashCode()List<String>names()protected List<String>parseNames()Parses the names out of the YAMLprotected doubleparsePriority()Parses the priority out of the YAMLdoublepriority()abstract Structstruct()StringtoString()Stringversion()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.ops.api.OpInfo
compareTo, createOpInstance, getAnnotationBearer, id, implementationName, inputs, inputTypes, opType, output, outputs, outputType
-
-
-
-
Method Detail
-
parseNames
protected List<String> parseNames()
Parses the names out of the YAML- Returns:
- the names stored in the YAML
- Throws:
IllegalArgumentException- if there are no names in the YAML, or if the names element is not a (collection of) String.
-
parsePriority
protected double parsePriority()
Parses the priority out of the YAML- Returns:
- the priority stored in the YAML, or otherwise
Priority.NORMAL
-
description
public String description()
- Specified by:
descriptionin interfaceOpInfo
-
declaredHints
public Hints declaredHints()
- Specified by:
declaredHintsin interfaceOpInfo
-
-