Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. private boolean isExpectedTable(final Element table, final Language language) {
  2. NamedNodeMap attributes = table.getAttributes();
  3. if (attributes != null) {
  4. Node vlNode = attributes.getNamedItem("VL");
  5. Node tableNameNode = attributes.getNamedItem("NAME");
  6. if (vlNode != null && tableNameNode != null) {
  7. if (language.getAlpha2().equalsIgnoreCase(vlNode.getNodeValue())) {
  8. return Constants.ATTO_TABLE_NAME.equalsIgnoreCase(tableNameNode.getNodeValue());
  9. }
  10. }
  11. }
  12. return false;
  13. }
  14.  
  15. private boolean isExpectedTable(final Element table, final Language language) {
  16. NamedNodeMap attributes = table.getAttributes();
  17. if (attributes != null) {
  18. Node vlNode = attributes.getNamedItem("VL");
  19. Node tableNameNode = attributes.getNamedItem("NAME");
  20. if (vlNode != null && tableNameNode != null && language.getAlpha2().equalsIgnoreCase(vlNode.getNodeValue())) {
  21.  
  22. return Constants.ATTO_TABLE_NAME.equalsIgnoreCase(tableNameNode.getNodeValue());
  23.  
  24. }
  25. }
  26. return false;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement