public class XATFReader extends AbstractImplementation implements ExecutableIF
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
dom
The Document object map of the ATF/XML file.
|
protected java.lang.String[] |
lcValuesNames
The list with the names of the values attributes of the localcolumns.
|
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
XATFReader()
Constructur of the XATFReader.
|
XATFReader(java.lang.String filename)
Constructur of the XATFReader.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Verify the existance of the external components defined in XATF-file.
|
java.lang.String |
getComponentFilename(java.lang.String componentName)
Get the filename of the component.
|
java.lang.String[] |
getComponentNames()
Get the list of the component names from the XML-Document.
|
NameValueUnit[][] |
getComponentValues(java.lang.String elementName)
Get the component description of the values of all localcolumn instances.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getDocumentation()
Get the documentation from the ATF-XML file.
|
org.w3c.dom.Node |
getElement(java.lang.String elementName)
Get the element description from the ATF-XML file.
|
java.lang.String[] |
getExternalComponents()
Get the external components from the ATF-XML file.
|
java.lang.String |
getFilename()
Get the filename.
|
java.lang.String[] |
getFilenames()
Get the list of the filenames from the XML-Document.
|
org.w3c.dom.Node |
getInstanceData()
Get the instance data from the ATF-XML file.
|
NameValueUnit[][] |
getLcValues(java.lang.String elementName)
Get the values of all localcolumn instances.
|
NameValueUnit[][] |
getLcValues(java.lang.String elementName,
org.w3c.dom.Node[] selElems)
Get the values of all localcolumn instances.
|
NameValueUnit[][] |
getValues(java.lang.String elementName)
Get the attribute values of all instances of the given application element.
|
void |
init()
Initialize the ATF/XML Reader.
|
static void |
main(java.lang.String[] args)
Main program.
|
void |
setFilename(java.lang.String filename)
Set the filename.
|
void |
terminate()
The terminate method, nothing to do.
|
void |
updateFilename(java.lang.String oldFilename,
java.lang.String newFilename)
Update the filename of the components in the map.
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected org.w3c.dom.Document dom
protected java.lang.String[] lcValuesNames
public XATFReader(java.lang.String filename)
filename
- - the filename of the file to read.public XATFReader()
public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.ExecutableIF.terminate()
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- - the filename of the file to read.public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- - When one of the requiered arguments not exist.com.highqsoft.xsd.ImplentationIF#init()
public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if external components are requred but not found.ExecutableIF.execute()
public org.w3c.dom.Node getInstanceData() throws XATFTagNotFound
XATFTagNotFound
public org.w3c.dom.Node getElement(java.lang.String elementName) throws XATFTagNotFound
elementName
- - the name of the application element to find.XATFTagNotFound
public java.util.HashMap<java.lang.String,java.lang.String> getDocumentation() throws XATFTagNotFound
XATFTagNotFound
public java.lang.String[] getExternalComponents() throws XATFTagNotFound
XATFTagNotFound
public java.lang.String[] getComponentNames() throws XATFTagNotFound
XATFTagNotFound
public java.lang.String[] getFilenames() throws XATFTagNotFound
XATFTagNotFound
public void updateFilename(java.lang.String oldFilename, java.lang.String newFilename)
oldFilename
- - the old filename.newFilename
- - the new filename.public java.lang.String getComponentFilename(java.lang.String componentName)
componentName
- - the component namepublic NameValueUnit[][] getValues(java.lang.String elementName)
elementName
- - the name of the application element.ExecutableException
public NameValueUnit[][] getLcValues(java.lang.String elementName) throws RuleException
elementName
- - the name of the localcolumn application element.RuleException
public NameValueUnit[][] getLcValues(java.lang.String elementName, org.w3c.dom.Node[] selElems) throws RuleException
elementName
- - the name of the localcolumn application element.RuleException
public NameValueUnit[][] getComponentValues(java.lang.String elementName) throws RuleException
elementName
- - the name of the localcolumn application element.RuleException
public static void main(java.lang.String[] args)
args
- - First argument is the atf-xml file.