removeAttribute(name) {
    var length = this.declaredAttributes.length;
    this.declaredAttributes = this.declaredAttributes.filter(function(val) {
      return val.name != name;
    });

    if (length == this.declaredAttributes.length)
      throw new Error("An Attribute with the name " + name + " is not declared.");
  }
/**
   * Removes an attribute from this type
   * @param {string} name The Name of the attribute which will be removed
   */
Removes an attribute from this type
@param {string} name The Name of the attribute which will be removed
Removes an attribute from this type @param { string } name The Name of the attribute which will be removed
removeAttribute(name) {
    var length = this.declaredAttributes.length;
    this.declaredAttributes = this.declaredAttributes.filter(function(val) {
      return val.name != name;
    });
    if (length == this.declaredAttributes.length)
      throw new Error("An Attribute with the name " + name + " is not declared.");
  }
removeAttribute ( name ) { var length = this . declaredAttributes . length ; this . declaredAttributes = this . declaredAttributes . filter ( function ( val ) { return val . name != name ; } ) ; if ( length == this . declaredAttributes . length ) throw new Error ( "An Attribute with the name " + name + " is not declared." ) ; }
Removes an attribute from this type
 @param {string} name The Name of the attribute which will be removed
Removes an attribute from this type @param { string } name The Name of the attribute which will be removed