Package ucar.nc2

Class AttributeContainerHelper

    • Constructor Detail

      • AttributeContainerHelper

        public AttributeContainerHelper​(String name)
        Deprecated.
      • AttributeContainerHelper

        public AttributeContainerHelper​(String name,
                                        List<Attribute> from)
        Deprecated.
    • Method Detail

      • filter

        @Deprecated
        public static AttributeContainer filter​(AttributeContainer atts,
                                                String... remove)
        Deprecated.
        use AttributeContainer.filter().
        Create a new AttributeContainer, removing any whose name starts with one in the given list.
        Parameters:
        atts - Start with this set of Attributes.
        remove - Remove any whose name starts with one of these.
        Returns:
        new AttributeContainer with attributes removed.
      • setImmutable

        @Deprecated
        public void setImmutable()
        Deprecated.
      • addAttribute

        public Attribute addAttribute​(String name,
                                      String value)
        Deprecated.
        Add Attribute; name and value must not be null.
      • addAttribute

        public Attribute addAttribute​(String name,
                                      Number value)
        Deprecated.
        Add Attribute; name and value must not be null.
      • findAttributeString

        public String findAttributeString​(String attName,
                                          String defaultValue)
        Deprecated.
        Description copied from interface: AttributeContainer
        Find a String Attribute by name (ignore case), return the String value of the Attribute.
        Specified by:
        findAttributeString in interface AttributeContainer
        Returns:
        the attribute value, or defaultValue if not found
      • findAttributeDouble

        public double findAttributeDouble​(String attName,
                                          double defaultValue)
        Deprecated.
        Description copied from interface: AttributeContainer
        Find a Numeric Attribute by name (ignore case), return the double value of the Attribute.
        Specified by:
        findAttributeDouble in interface AttributeContainer
        Returns:
        the attribute value, or defaultValue if not found
      • findAttributeInteger

        public int findAttributeInteger​(String attName,
                                        int defaultValue)
        Deprecated.
        Description copied from interface: AttributeContainer
        Find a Numeric Attribute by name (ignore case), return the integer value of the Attribute.
        Specified by:
        findAttributeInteger in interface AttributeContainer
        Returns:
        the attribute value, or defaultValue if not found
      • remove

        public boolean remove​(Attribute a)
        Deprecated.
        Remove an Attribute : uses the attribute hashCode to find it.
        Specified by:
        remove in interface AttributeContainer
        Parameters:
        a - remove this attribute
        Returns:
        true if was found and removed
      • replace

        public void replace​(Attribute a,
                            String newName)
        Deprecated.
        Replace an Attribute with a different name, same value.
        Parameters:
        a - remove this attribute
      • removeAttribute

        public boolean removeAttribute​(String attName)
        Deprecated.
        Remove an Attribute by name.
        Specified by:
        removeAttribute in interface AttributeContainer
        Parameters:
        attName - if exists, remove this attribute
        Returns:
        true if was found and removed
      • removeAttributeIgnoreCase

        public boolean removeAttributeIgnoreCase​(String attName)
        Deprecated.
        Remove an Attribute by name, ignoring case
        Specified by:
        removeAttributeIgnoreCase in interface AttributeContainer
        Parameters:
        attName - if exists, remove this attribute
        Returns:
        true if was found and removed