Package org.anchoranalysis.bean
Class NamedBean<T extends AnchorBean<?>>
Object
- Type Parameters:
T- item type
- All Implemented Interfaces:
NameValue<T>
public class NamedBean<T extends AnchorBean<?>> extends NullParametersBean<NamedBean<T>> implements NameValue<T>
A bean with an associated textual name.
- Author:
- Owen Feehan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TgetItem()The item that is to be named, the underlying bean.StringgetName()The name associated withitem.TgetValue()voidsetItem(T item)The item that is to be named, the underlying bean.voidsetName(String name)The name associated withitem.voidsetValue(T item)StringtoString()By default, we useAnchorBean.describeBean()as the string representation of the bean.Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Method Details
-
toString
Description copied from class:AnchorBeanBy default, we useAnchorBean.describeBean()as the string representation of the bean.- Overrides:
toStringin classAnchorBean<NamedBean<T extends AnchorBean<?>>>- Returns:
- the string representation
-
getValue
- Specified by:
getValuein interfaceNameValue<T extends AnchorBean<?>>
-
setValue
- Specified by:
setValuein interfaceNameValue<T extends AnchorBean<?>>
-
getName
The name associated withitem.- Specified by:
getNamein interfaceNameValue<T extends AnchorBean<?>>
-
setName
The name associated withitem.- Specified by:
setNamein interfaceNameValue<T extends AnchorBean<?>>
-
getItem
The item that is to be named, the underlying bean. -
setItem
The item that is to be named, the underlying bean.
-