Class NamedBean<T extends AnchorBean<?>>
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()The item that is to be named, the underlying bean.getName()The name associated withitem.getValue()voidThe item that is to be named, the underlying bean.voidThe name associated withitem.voidtoString()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
-
NamedBean
-
NamedBean
public NamedBean()
-
-
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.
-