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, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected 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 ExecutableIFTerminationException - 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 ImplementationIFinit in class AbstractImplementationInitializationFailedException - - When one of the requiered arguments not exist.com.highqsoft.xsd.ImplentationIF#init()public void execute()
throws ExecutableException
execute in interface ExecutableIFExecutableException - if external components are requred but not found.ExecutableIF.execute()public org.w3c.dom.Node getInstanceData()
throws XATFTagNotFound
XATFTagNotFoundpublic org.w3c.dom.Node getElement(java.lang.String elementName)
throws XATFTagNotFound
elementName - - the name of the application element to find.XATFTagNotFoundpublic java.util.HashMap<java.lang.String,java.lang.String> getDocumentation()
throws XATFTagNotFound
XATFTagNotFoundpublic java.lang.String[] getExternalComponents()
throws XATFTagNotFound
XATFTagNotFoundpublic java.lang.String[] getComponentNames()
throws XATFTagNotFound
XATFTagNotFoundpublic java.lang.String[] getFilenames()
throws XATFTagNotFound
XATFTagNotFoundpublic 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.ExecutableExceptionpublic NameValueUnit[][] getLcValues(java.lang.String elementName) throws RuleException
elementName - - the name of the localcolumn application element.RuleExceptionpublic NameValueUnit[][] getLcValues(java.lang.String elementName, org.w3c.dom.Node[] selElems) throws RuleException
elementName - - the name of the localcolumn application element.RuleExceptionpublic NameValueUnit[][] getComponentValues(java.lang.String elementName) throws RuleException
elementName - - the name of the localcolumn application element.RuleExceptionpublic static void main(java.lang.String[] args)
args - - First argument is the atf-xml file.