Class FromXMLList
- All Implemented Interfaces:
DefineAdder
Adds a list of Named-Items define in a XML file in the current directory.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds items todefine
.getName()
The name of the file in the current working directory WITHOUT THE .xml EXTENSIONboolean
isPrefix()
If true, a prefix is prepended to the name of each added bean.void
The name of the file in the current working directory WITHOUT THE .xml EXTENSIONvoid
setPrefix
(boolean prefix) If true, a prefix is prepended to the name of each added bean.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromXMLList
public FromXMLList()
-
-
Method Details
-
addTo
Description copied from interface:DefineAdder
Adds items todefine
.What items are added varies by implementation.
- Parameters:
define
- where to add items to- Throws:
DefineAddException
- if the items cannot be added successfully.
-
getName
The name of the file in the current working directory WITHOUT THE .xml EXTENSION -
setName
The name of the file in the current working directory WITHOUT THE .xml EXTENSION -
isPrefix
public boolean isPrefix()If true, a prefix is prepended to the name of each added bean. The prefix is: the name followed by a full-stop. -
setPrefix
public void setPrefix(boolean prefix) If true, a prefix is prepended to the name of each added bean. The prefix is: the name followed by a full-stop.
-