opendap/src/main/java/opendap/dap/DDS.java
private String repairLooseEndsTableConflict(String badName, int attempt)
    {

        DAPNode.log.debug("Repairing toplevel attribute table name conflict. Attempt: " + attempt);

        String name = "";

        switch (attempt) {

        case 0:
            name = badName + "_DatasetAttributes_0";
            break;
        default:
            int last_ = badName.lastIndexOf("_");
            name = badName.substring(0, last_) + "_" + attempt;
            break;
        }

        return (name);

    }
private String repairLooseEndsTableConflict(String badName, int attempt)
    {

        DAPNode.log.debug("Repairing toplevel attribute table name conflict. Attempt: " + attempt);

        String name = "";

        switch (attempt) {

        case 0:
            name = badName + "_DatasetAttributes_0";
            break;
        default:
            int last_ = badName.lastIndexOf("_");
            name = badName.substring(0, last_) + "_" + attempt;
            break;
        }

        return (name);

    }
private String repairLooseEndsTableConflict ( String badName , int attempt ) { DAPNode . log . debug ( "Repairing toplevel attribute table name conflict. Attempt: " + attempt ) ; String name = "" ; switch ( attempt ) { case 0 : name = badName + "_DatasetAttributes_0" ; break ; default : int last_ = badName . lastIndexOf ( "_" ) ; name = badName . substring ( 0 , last_ ) + "_" + attempt ; break ; } return ( name ) ; }
A helper function for <code>checkLooseEndsTableNameConflict</code>
insures that there are no naming conflicts when creating a looseEnds
<code>AttributeTable</code>

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