org.scijava
Class AbstractBasicDetails

java.lang.Object
  extended by org.scijava.AbstractBasicDetails
All Implemented Interfaces:
BasicDetails
Direct Known Subclasses:
AbstractUIDetails

public abstract class AbstractBasicDetails
extends Object
implements BasicDetails

Abstract superclass of BasicDetails implementations.

Author:
Curtis Rueden

Constructor Summary
AbstractBasicDetails()
           
 
Method Summary
 String get(String key)
          Gets the value of the given key, or null if undefined.
 String getDescription()
          Gets a string describing the object.
 String getLabel()
          Gets the name to appear in a UI, if applicable.
 String getName()
          Gets the unique name of the object.
 boolean is(String key)
          Returns true iff the given key is defined.
 void set(String key, String value)
          Sets the value of the given key.
 void setDescription(String description)
          Sets a string describing the object.
 void setLabel(String label)
          Sets the name to appear in a UI, if applicable.
 void setName(String name)
          Sets the unique name of the object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractBasicDetails

public AbstractBasicDetails()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Description copied from interface: BasicDetails
Gets the unique name of the object.

Specified by:
getName in interface BasicDetails

getLabel

public String getLabel()
Description copied from interface: BasicDetails
Gets the name to appear in a UI, if applicable.

Specified by:
getLabel in interface BasicDetails

getDescription

public String getDescription()
Description copied from interface: BasicDetails
Gets a string describing the object.

Specified by:
getDescription in interface BasicDetails

is

public boolean is(String key)
Description copied from interface: BasicDetails
Returns true iff the given key is defined.

Specified by:
is in interface BasicDetails

get

public String get(String key)
Description copied from interface: BasicDetails
Gets the value of the given key, or null if undefined.

Specified by:
get in interface BasicDetails

setName

public void setName(String name)
Description copied from interface: BasicDetails
Sets the unique name of the object.

Specified by:
setName in interface BasicDetails

setLabel

public void setLabel(String label)
Description copied from interface: BasicDetails
Sets the name to appear in a UI, if applicable.

Specified by:
setLabel in interface BasicDetails

setDescription

public void setDescription(String description)
Description copied from interface: BasicDetails
Sets a string describing the object.

Specified by:
setDescription in interface BasicDetails

set

public void set(String key,
                String value)
Description copied from interface: BasicDetails
Sets the value of the given key.

Specified by:
set in interface BasicDetails


Copyright © 2009–2014 SciJava. All rights reserved.