iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNNameParser.java
static NameComponent[] nameToCosName(Name name)
            throws InvalidNameException {
        int len = name.size();
        if (len == 0) {
            return new NameComponent[0];
        }

        NameComponent[] answer = new NameComponent[len];
        for (int i = 0; i < len; i++) {
            answer[i] = parseComponent(name.get(i));
        }
        return answer;
    }
static NameComponent[] nameToCosName(Name name)
            throws InvalidNameException {
        int len = name.size();
        if (len == 0) {
            return new NameComponent[0];
        }

        NameComponent[] answer = new NameComponent[len];
        for (int i = 0; i < len; i++) {
            answer[i] = parseComponent(name.get(i));
        }
        return answer;
    }
static NameComponent [ ] nameToCosName ( Name name ) throws InvalidNameException { int len = name . size ( ) ; if ( len == 0 ) { return new NameComponent [ 0 ] ; } NameComponent [ ] answer = new NameComponent [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { answer [ i ] = parseComponent ( name . get ( i ) ) ; } return answer ; }
Creates a NameComponent[] from a Name structure.
Used by CNCtx to convert the input Name arg into a NameComponent[].

@param name a CompoundName or a CompositeName;
each component must be the stringified form of a NameComponent.
Creates a NameComponent [] from a Name structure . Used by CNCtx to convert the input Name arg into a NameComponent [] .