Class DefineAdderWithPrefixBean
Object
org.anchoranalysis.bean.AnchorBean<DefineAdder>
org.anchoranalysis.bean.define.adder.DefineAdderBean
org.anchoranalysis.bean.define.adder.DefineAdderWithPrefixBean
- All Implemented Interfaces:
DefineAdder
public abstract class DefineAdderWithPrefixBean extends DefineAdderBean
Like
DefineAdderBean but adds a prefix to the name of beans when adding.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DefineAdderWithPrefixBean() -
Method Summary
Modifier and Type Method Description protected voidaddWithName(Define define, String name, AnchorBean<?> item)Add an item todefinewith a name being added.StringgetPrefix()A prefix that is placed before the name of every bean created.protected StringresolveName(String name)Prepends a prefix before the name.voidsetPrefix(String prefix)A prefix that is placed before the name of every bean created.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DefineAdderWithPrefixBean
public DefineAdderWithPrefixBean()
-
-
Method Details
-
addWithName
protected void addWithName(Define define, String name, AnchorBean<?> item) throws DefineAddExceptionAdd an item todefinewith a name being added.- Parameters:
define- the define.name- the name of the bean.item- the item to add.- Throws:
DefineAddException- if a {#link GroupingRoot} cannot be found in the class-hierarchy.
-
resolveName
Prepends a prefix before the name.- Parameters:
name- the name to prepend.- Returns:
- the name with a prefix prepended.
-
getPrefix
A prefix that is placed before the name of every bean created. -
setPrefix
A prefix that is placed before the name of every bean created.
-