Package org.jconfig

Examples of org.jconfig.DefaultCategory


                    if ( tmp.indexOf(" extends ") != -1 ) {
                        extend = name.substring(name.indexOf(" extends ")+9);
                        extend = extend.trim();
                        name = name.substring(0,name.indexOf(" extends "));                           
                    }
                    Category ec = new DefaultCategory(name);
                    if ( extend != null ) {
                        ec.setExtendsCategory(extend);
                    }
                    cfg.setCategory(ec);
                    currentCategoryName = name;
                }
            }
View Full Code Here


                          if ( tmp.indexOf(" extends ") != -1 ) {
                              extend = name.substring(name.indexOf(" extends ")+9);
                              extend = extend.trim();
                              name = name.substring(0,name.indexOf(" extends "));                           
                          }
                          Category ec = new DefaultCategory(name);
                          if ( extend != null ) {
                              ec.setExtendsCategory(extend);
                          }
                          cfg.setCategory(ec);
                          currentCategoryName = name;
                        }
                      }
View Full Code Here

            Node n = nl.item(i);
            // and get the name attribute for this category
            NamedNodeMap curAtt = n.getAttributes();
            Node curNode = curAtt.getNamedItem("name");
            currentCategory = curNode.getNodeValue();                       
            Category ec = new DefaultCategory(currentCategory);
            configuration.setCategory(ec);
            curNode = curAtt.getNamedItem("extends");
            if ( curNode != null ) {
                ec.setExtendsCategory(curNode.getNodeValue());
            }
            // now we process all children for this category
            for (Node child = n.getFirstChild(); child != null; child = child.getNextSibling()) {
                // we take the tag name as property name               
                if ( child.getNodeType() == 1 && child.getFirstChild() != null ) {
View Full Code Here

TOP

Related Classes of org.jconfig.DefaultCategory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.