Package org.scijava
Class AbstractBasicDetails
- java.lang.Object
-
- org.scijava.AbstractBasicDetails
-
- All Implemented Interfaces:
BasicDetails,Named
- Direct Known Subclasses:
AbstractModuleItem,AbstractUIDetails
public abstract class AbstractBasicDetails extends Object implements BasicDetails
Abstract superclass ofBasicDetailsimplementations.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractBasicDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String key)Gets the value of the given key, or null if undefined.StringgetDescription()Gets a string describing the object.StringgetLabel()Gets the name to appear in a UI, if applicable.StringgetName()Gets the name of the object.booleanis(String key)Returns true iff the given key is defined.voidset(String key, String value)Sets the value of the given key.voidsetDescription(String description)Sets a string describing the object.voidsetLabel(String label)Sets the name to appear in a UI, if applicable.voidsetName(String name)Sets the name of the object.StringtoString()
-
-
-
Method Detail
-
getLabel
public String getLabel()
Description copied from interface:BasicDetailsGets the name to appear in a UI, if applicable.- Specified by:
getLabelin interfaceBasicDetails
-
getDescription
public String getDescription()
Description copied from interface:BasicDetailsGets a string describing the object.- Specified by:
getDescriptionin interfaceBasicDetails
-
is
public boolean is(String key)
Description copied from interface:BasicDetailsReturns true iff the given key is defined.- Specified by:
isin interfaceBasicDetails
-
get
public String get(String key)
Description copied from interface:BasicDetailsGets the value of the given key, or null if undefined.- Specified by:
getin interfaceBasicDetails
-
setLabel
public void setLabel(String label)
Description copied from interface:BasicDetailsSets the name to appear in a UI, if applicable.- Specified by:
setLabelin interfaceBasicDetails
-
setDescription
public void setDescription(String description)
Description copied from interface:BasicDetailsSets a string describing the object.- Specified by:
setDescriptionin interfaceBasicDetails
-
set
public void set(String key, String value)
Description copied from interface:BasicDetailsSets the value of the given key.- Specified by:
setin interfaceBasicDetails
-
getName
public String getName()
Description copied from interface:NamedGets the name of the object.
-
-