Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean isExpectedTable(final Element table, final Language language) {
- NamedNodeMap attributes = table.getAttributes();
- if (attributes != null) {
- Node vlNode = attributes.getNamedItem("VL");
- Node tableNameNode = attributes.getNamedItem("NAME");
- if (vlNode != null && tableNameNode != null) {
- if (language.getAlpha2().equalsIgnoreCase(vlNode.getNodeValue())) {
- return Constants.ATTO_TABLE_NAME.equalsIgnoreCase(tableNameNode.getNodeValue());
- }
- }
- }
- return false;
- }
- private boolean isExpectedTable(final Element table, final Language language) {
- NamedNodeMap attributes = table.getAttributes();
- if (attributes != null) {
- Node vlNode = attributes.getNamedItem("VL");
- Node tableNameNode = attributes.getNamedItem("NAME");
- if (vlNode != null && tableNameNode != null && language.getAlpha2().equalsIgnoreCase(vlNode.getNodeValue())) {
- return Constants.ATTO_TABLE_NAME.equalsIgnoreCase(tableNameNode.getNodeValue());
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement