Package KFM.beans.PortalGuiConsts

Examples of KFM.beans.PortalGuiConsts.SieMapLanguage


                tServletProps.cLanguage, index, tServletProps.cLocalName);
            String tEnglishName = tServletProps.getOptionalString(
                tServletProps.cLanguage, index, tServletProps.cEnglishName);
            if ((tCode != null)&& (tCode.length() > 0)){
                //language at index 'index' is found, so build class SieMapLanguage
                SieMapLanguage tLanguage = new SieMapLanguage(
                    tCode,
                    tLocalName,
                    tEnglishName);
                tVector.addElement (tLanguage);
                //next index
                index += 1;
            }
            else {
                //no more entries found
                break;
            }
        }
        if (index == 0){
            //no language entry found, but its required for SieMap
            throw new NoSuchServletPropertyException ("Property Language not set!");
        }
        //now convert into the array of SieMapLanguages
        SieMapLanguage[] tAcceptedLanguages = new SieMapLanguage[tVector.size()];
        for (int i = 0; i < tVector.size(); i++){
            SieMapLanguage tLanguage = (SieMapLanguage)tVector.elementAt(i);
            tAcceptedLanguages[i] = tLanguage;
        }
        return tAcceptedLanguages;
    }
View Full Code Here

TOP

Related Classes of KFM.beans.PortalGuiConsts.SieMapLanguage

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.