Skip to content

Commit

Permalink
Merge pull request #3 from erssebaggala/ignore_param_case
Browse files Browse the repository at this point in the history
Ignore MO and parameter case
  • Loading branch information
erssebaggala committed Sep 12, 2019
2 parents 25da429 + d09154f commit bdbea7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright 2019 Bodastage Solutions

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<groupId>com.bodastage.boda_huaweicmobjectparser</groupId>
<artifactId>boda-huaweicmobjectparser</artifactId>
<packaging>jar</packaging>
<version>1.0.7-SNAPSHOT</version>
<name>boda-huaweicmobjectparser</name>
<version>1.0.11-SNAPSHOT</version>
<name>boda-huaweicmobjectparser-pr</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
public class HuaweiCMObjectParser {

final static String VERSION = "1.0.10";
final static String VERSION = "1.0.11";

Logger logger = LoggerFactory.getLogger(HuaweiCMObjectParser.class);

Expand Down Expand Up @@ -285,12 +285,12 @@ public void getParametersToExtract(String filename) throws FileNotFoundException
}

String[] moAndParameters = line.split(":");
String mo = moAndParameters[0];
String mo = moAndParameters[0].toUpperCase();
String[] parameters = moAndParameters[1].split(",");

Stack parameterStack = new Stack();
for (int i = 0; i < parameters.length; i++) {
parameterStack.push(parameters[i]);
parameterStack.push(parameters[i].toUpperCase());
}
moColumns.put(mo, parameterStack);
//domainHeaderAdded.put(mo, Boolean.TRUE);
Expand Down Expand Up @@ -535,7 +535,7 @@ public void startElementEvent(XMLEvent xmlEvent) throws FileNotFoundException {
String attrName = attribute.getName().getLocalPart();
String attrValue = attribute.getValue();
if (attrName.equals("name")) {
className = attrValue;
className = attrValue.toUpperCase();
//className = attrValue;
LinkedHashMap<String, String> Lhm = new LinkedHashMap<String, String>();
// classNameAttrsMap.put(className, Lhm);
Expand Down

0 comments on commit bdbea7b

Please sign in to comment.