com.jk.application.parsers.ModuleMenuXmlParser Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2002-2016 Jalal Kiswani.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jk.application.parsers;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.jk.application.api.ApplicationSuperFactory;
import com.jk.application.api.Menu;
import com.jk.application.api.MenuItem;
import com.jk.application.api.Module;
import com.jk.exceptions.JKXmlException;
/**
* The Class ModuleMenuXmlParser.
*
* @author Jalal Kiswani
*/
public class ModuleMenuXmlParser {
private final Module parentModule;
private int menuItemsIndex = 1;
private int menuIndex = 1;
/**
* Instantiates a new module menu xml parser.
*
* @param parentModule
* the parent module
*/
public ModuleMenuXmlParser(final Module parentModule) {
this.parentModule = parentModule;
}
/**
* Parses the.
*
* @param in
* the in
* @return the array list
* @throws JKXmlException
* the JK xml exception
*/
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy