@Deprecated
    public String getName()
    {
        switch (sort) {
        case ATTRIBUTE:
        case DIMENSION:
        case ENUMERATION:
            // for these cases, getName is getShortName
            return getShortName();

        case VARIABLE: // Atomic
        case SEQUENCE:
        case STRUCTURE:
        case GROUP:
            // for these cases, getName is getFullName
            return getFullName();
        default:
            break;
        }
        return getShortName(); // default
    }
@ Deprecated public String getName ( ) { switch ( sort ) { case ATTRIBUTE : case DIMENSION : case ENUMERATION : return getShortName ( ) ; case VARIABLE : case SEQUENCE : case STRUCTURE : case GROUP : return getFullName ( ) ; default : break ; } return getShortName ( ) ; }
getName is deprecated because, as the code below shows,
it has no consistent meaning. Sometimes it returns
the short name, sometimes it returns the full name.

@deprecated Replaced by {@link #getShortName()} and {@link #getFullName()}