opendap/src/main/java/opendap/dap/AttributeTable.java
public final void addAlias(String alias, String attributeName)
            throws NoSuchAttributeException, AttributeExistsException {

        // complain if alias name already exists in this AttributeTable.
        if (_attr.get(alias) != null) {
            throw new AttributeExistsException("Could not alias `" + alias +
                    "' to `" + attributeName + "'. " +
                    "It is a duplicat name in this AttributeTable");
        }
        if (Debug.isSet("AttributTable")) {
            log.debug("Adding alias '" + alias + "' to AttributeTable '" + getClearName() + "'");
        }

        Alias newAlias = new Alias(alias, attributeName);
        _attr.put(alias, newAlias);
    }
public final void addAlias(String alias, String attributeName)
            throws NoSuchAttributeException, AttributeExistsException {

        // complain if alias name already exists in this AttributeTable.
        if (_attr.get(alias) != null) {
            throw new AttributeExistsException("Could not alias `" + alias +
                    "' to `" + attributeName + "'. " +
                    "It is a duplicat name in this AttributeTable");
        }
        if (Debug.isSet("AttributTable")) {
            log.debug("Adding alias '" + alias + "' to AttributeTable '" + getClearName() + "'");
        }

        Alias newAlias = new Alias(alias, attributeName);
        _attr.put(alias, newAlias);
    }
public final void addAlias ( String alias , String attributeName ) throws NoSuchAttributeException , AttributeExistsException { // complain if alias name already exists in this AttributeTable.
 if ( _attr . get ( alias ) != null ) { throw new AttributeExistsException ( "Could not alias `" + alias + "' to `" + attributeName + "'. " + "It is a duplicat name in this AttributeTable" ) ; } if ( Debug . isSet ( "AttributTable" ) ) { log . debug ( "Adding alias '" + alias + "' to AttributeTable '" + getClearName ( ) + "'" ) ; } Alias newAlias = new Alias ( alias , attributeName ) ; _attr . put ( alias , newAlias ) ; }
Add an alias to the current table.
This method is used by the DAS parser to build Aliases
for the DAS. And the DDSXMLParser to add them to the DDX
<p/>
The new (9/26/02) DDS requires the use of <code>
addAlias(String, String, String)</code> and is the preffered
way of representing the DAS information.

@param alias         The alias to insert into the attribute table.
@param attributeName The normalized name of the attribute to which
the alias will refer.
@throws NoSuchAttributeException thrown if the existing attribute
could not be found.
@throws AttributeExistsException thrown if the new alias has the same
name as an existing attribute.
Add an alias to the current table . This method is used by the DAS parser to build Aliases for the DAS . And the DDSXMLParser to add them to the DDX <p / > The new ( 9 / 26 / 02 ) DDS requires the use of <code > addAlias ( String String String ) < / code > and is the preffered way of representing the DAS information .