Package cip

Examples of cip.StringTokenizerTCS


    public static boolean isHierName(String value)
    {
        if(value.equals("*"))
            return true;
        for(StringTokenizerTCS toker = new StringTokenizerTCS(value, ".", true); toker.hasMoreTokens();)
        {
            String t = toker.nextToken();
            if(t.startsWith("$") || t.startsWith("_"))
                return true;
            if(!ANY.isIECidentifier(t))
                return false;
            if(toker.hasMoreTokens())
            {
                if(!toker.nextToken().equals("."))
                    return false;
                if(!toker.hasMoreTokens())
                    return false;
            }
        }

        return true;
View Full Code Here


    public static boolean isHierName(String value)
    {
        if(value.equals("*"))
            return true;
        for(StringTokenizerTCS toker = new StringTokenizerTCS(value, ".", true); toker.hasMoreTokens();)
        {
            String t = toker.nextToken();
            if(t.startsWith("$") || t.startsWith("_"))
                return true;
            if(!ANY.isIECidentifier(t))
                return false;
            if(toker.hasMoreTokens())
            {
                if(!toker.nextToken().equals("."))
                    return false;
                if(!toker.hasMoreTokens())
                    return false;
            }
        }

        return true;
View Full Code Here

    public static boolean isHierName(String value)
    {
        if(value.equals("*"))
            return true;
        for(StringTokenizerTCS toker = new StringTokenizerTCS(value, ".", true); toker.hasMoreTokens();)
        {
            String t = toker.nextToken();
            if(t.startsWith("$") || t.startsWith("_"))
                return true;
            if(!ANY.isIECidentifier(t))
                return false;
            if(toker.hasMoreTokens())
            {
                if(!toker.nextToken().equals("."))
                    return false;
                if(!toker.hasMoreTokens())
                    return false;
            }
        }

        return true;
View Full Code Here

TOP

Related Classes of cip.StringTokenizerTCS

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.