opendap/src/main/java/opendap/dap/DDS.java
private String checkLooseEndsTableNameConflict(String clearname, int attempt)
    {
        Enumeration e = getVariables();
        while (e.hasMoreElements()) {
            BaseType bt = (BaseType) e.nextElement();
            String btName = bt.getEncodedName();

            //LogStream.out.println("bt: '"+btName+"'  dataset: '"+name+"'");

            if (btName.equals(clearname)) {
                clearname = repairLooseEndsTableConflict(clearname, attempt++);
                clearname = checkLooseEndsTableNameConflict(clearname, attempt);
            }
        }

        AttributeTable at = getAttributeTable();
        e = at.getNames();
        while (e.hasMoreElements()) {
            String aName = (String) e.nextElement();
            if (aName.equals(clearname)) {
                clearname = repairLooseEndsTableConflict(clearname, attempt++);
                clearname = checkLooseEndsTableNameConflict(clearname, attempt);
            }
        }
        return (clearname);
    }
private String checkLooseEndsTableNameConflict(String clearname, int attempt)
    {
        Enumeration e = getVariables();
        while (e.hasMoreElements()) {
            BaseType bt = (BaseType) e.nextElement();
            String btName = bt.getEncodedName();

            //LogStream.out.println("bt: '"+btName+"'  dataset: '"+name+"'");

            if (btName.equals(clearname)) {
                clearname = repairLooseEndsTableConflict(clearname, attempt++);
                clearname = checkLooseEndsTableNameConflict(clearname, attempt);
            }
        }

        AttributeTable at = getAttributeTable();
        e = at.getNames();
        while (e.hasMoreElements()) {
            String aName = (String) e.nextElement();
            if (aName.equals(clearname)) {
                clearname = repairLooseEndsTableConflict(clearname, attempt++);
                clearname = checkLooseEndsTableNameConflict(clearname, attempt);
            }
        }
        return (clearname);
    }
private String checkLooseEndsTableNameConflict ( String clearname , int attempt ) { Enumeration e = getVariables ( ) ; while ( e . hasMoreElements ( ) ) { BaseType bt = ( BaseType ) e . nextElement ( ) ; String btName = bt . getEncodedName ( ) ; //LogStream.out.println("bt: '"+btName+"'  dataset: '"+name+"'"); if ( btName . equals ( clearname ) ) { clearname = repairLooseEndsTableConflict ( clearname , attempt ++ ) ; clearname = checkLooseEndsTableNameConflict ( clearname , attempt ) ; } } AttributeTable at = getAttributeTable ( ) ; e = at . getNames ( ) ; while ( e . hasMoreElements ( ) ) { String aName = ( String ) e . nextElement ( ) ; if ( aName . equals ( clearname ) ) { clearname = repairLooseEndsTableConflict ( clearname , attempt ++ ) ; clearname = checkLooseEndsTableNameConflict ( clearname , attempt ) ; } } return ( clearname ) ; }
Make A helper function for <code>getLooseEndsTableName</code>
insures that there are no naming conflicts when creating a looseEnds
<code>AttributeTable</code>

@param clearname
@param attempt
@return
@see #getLooseEndsTableName
@see #getDAS
Make A helper function for <code > getLooseEndsTableName< / code > insures that there are no naming conflicts when creating a looseEnds <code > AttributeTable< / code >