Class FromXMLList
Object
org.anchoranalysis.bean.AnchorBean<DefineAdder>
org.anchoranalysis.bean.define.adder.DefineAdderBean
org.anchoranalysis.bean.define.adder.FromXMLList
- All Implemented Interfaces:
DefineAdder
public class FromXMLList extends DefineAdderBean
Adds a list of Named-Items define in a XML file in the current directory.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FromXMLList() -
Method Summary
Modifier and Type Method Description voidaddTo(Define define)Adds items todefine.StringgetName()The name of the file in the current working directory WITHOUT THE .xml EXTENSIONbooleanisPrefix()If true, a prefix is prepended to the name of each added bean.voidsetName(String name)The name of the file in the current working directory WITHOUT THE .xml EXTENSIONvoidsetPrefix(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:DefineAdderAdds 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.
-