Package org.omg.CosNaming.NamingContextPackage

Examples of org.omg.CosNaming.NamingContextPackage.InvalidName


    public static org.omg.CosNaming.NameComponent[] toName( String sn )
    throws org.omg.CosNaming.NamingContextPackage.InvalidName
    {
    if( sn == null || sn.length() == 0 || sn.startsWith("/"))
        throw new InvalidName();

    Vector v = new Vector();

    int start = 0;
    int i = 0;
    for( ; i < sn.length(); i++ )
    {
        if( sn.charAt(i) == '/' && sn.charAt(i-1) != '\\')
        {
        if( i-start == 0 )
            throw new InvalidName();
        v.addElement( getComponent( sn.substring( start, i )));
        start = i+1;
        }
    }
    if( start < i )
View Full Code Here


    public Name(NameComponent[] n)
    throws InvalidName
    {
    if( n == null || n.length == 0 )
        throw new InvalidName();

    fullName = n;
    baseName = n[ n.length-1 ];
    if( n.length > 1 )
    {
View Full Code Here

                // Escaped character

                i++;
                if (i >= len)
                {
                    throw new InvalidName ();
                }
            ch = sn.charAt (i);
            }
            else if (ch == '.')
            {
                // id/kind separator character

                if (inKind)
                {
                    throw new InvalidName ();
                }
                inKind = true;
                continue;
            }
            if (inKind)
View Full Code Here

    public static org.omg.CosNaming.NameComponent[] toName( String sn )
    throws org.omg.CosNaming.NamingContextPackage.InvalidName
    {
    if( sn == null || sn.length() == 0 || sn.startsWith("/"))
        throw new InvalidName();

    Vector v = new Vector();

    int start = 0;
    int i = 0;
    for( ; i < sn.length(); i++ )
    {
        if( sn.charAt(i) == '/' && sn.charAt(i-1) != '\\')
        {
        if( i-start == 0 )
            throw new InvalidName();
        v.addElement( getComponent( sn.substring( start, i )));
        start = i+1;
        }
    }
    if( start < i )
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        if( obj == null )
            throw new org.omg.CORBA.BAD_PARAM();

        Name n = new Name( nc );
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        if( obj == null )
            throw new org.omg.CORBA.BAD_PARAM();

        Name n = new Name( nc );
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        if( obj == null )
            throw new org.omg.CORBA.BAD_PARAM();

        Name n = new Name( nc );
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        NamingContextExt ns = NamingContextExtHelper.narrow(new_context());
        bind_context( nc, ns );

        if( ns == null )
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        Name n = new Name( nc[0] );
        if( nc.length > 1 )
        {
            NamingContextExt next_context =
View Full Code Here

    {
        if( destroyed )
            throw new CannotProceed();

        if( nc == null || nc.length == 0 )
            throw new InvalidName();

        Name n = new Name( nc );
        Name ctx = n.ctxName();
        NameComponent nb = n.baseNameComponent();
View Full Code Here

TOP

Related Classes of org.omg.CosNaming.NamingContextPackage.InvalidName

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.