Package ucar.nc2.ft2.coverage
Class CoverageTransform
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageTransform
-
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer
@Immutable public class CoverageTransform extends Object implements AttributeContainer
Coverage Coordinate Transform. Immutable with lazy instantiation of projection- Since:
- 7/11/2015 TODO will not implement AttributeContainer, use attibutes()
-
-
Constructor Summary
Constructors Constructor Description CoverageTransform(String name, AttributeContainer attributes, boolean isHoriz)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAll(Iterable<Attribute> atts)Add all; replace old if has same nameAttributeaddAttribute(Attribute att)Add new or replace old if has same nameAttributeContainerattributes()The attributes contained by this CoverageTransform.AttributefindAttribute(String name)Deprecated.Use attributes()doublefindAttributeDouble(String attName, double defaultValue)Deprecated.Use attributes()AttributefindAttributeIgnoreCase(String name)Deprecated.Use attributes()intfindAttributeInteger(String attName, int defaultValue)Deprecated.Use attributes()StringfindAttributeString(String attName, String defaultValue)Deprecated.Use attributes()List<Attribute>getAttributes()Deprecated.Use attributes()StringgetName()Get the (optional) name of the AttributeContainer.ProjectionImplgetProjection()booleanisEmpty()Deprecated.Use attributes()booleanisHoriz()booleanremove(Attribute a)Remove an Attribute : uses the attribute hashCode to find it.booleanremoveAttribute(String attName)Remove an Attribute by name.booleanremoveAttributeIgnoreCase(String attName)Remove an Attribute by name, ignoring caseStringtoString()voidtoString(Formatter f, Indent indent)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.nc2.AttributeContainer
findAttValueIgnoreCase, hasAttribute, hasAttributeIgnoreCase, iterator
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CoverageTransform
public CoverageTransform(String name, AttributeContainer attributes, boolean isHoriz)
-
-
Method Detail
-
isHoriz
public boolean isHoriz()
-
getProjection
public ProjectionImpl getProjection()
-
attributes
public AttributeContainer attributes()
The attributes contained by this CoverageTransform.
-
getAttributes
@Deprecated public List<Attribute> getAttributes()
Deprecated.Use attributes()Description copied from interface:AttributeContainerReturns immutable list of attributes.- Specified by:
getAttributesin interfaceAttributeContainer
-
isEmpty
public boolean isEmpty()
Deprecated.Use attributes()Description copied from interface:AttributeContainerTrue is there are no attributes in the container.- Specified by:
isEmptyin interfaceAttributeContainer
-
findAttribute
@Deprecated public Attribute findAttribute(String name)
Deprecated.Use attributes()Description copied from interface:AttributeContainerFind an Attribute by exact match on name.- Specified by:
findAttributein interfaceAttributeContainer
-
findAttributeIgnoreCase
@Deprecated public Attribute findAttributeIgnoreCase(String name)
Deprecated.Use attributes()Description copied from interface:AttributeContainerFind an Attribute by name, first doing an exact match, then ignoring case.- Specified by:
findAttributeIgnoreCasein interfaceAttributeContainer
-
findAttributeString
@Deprecated public String findAttributeString(String attName, String defaultValue)
Deprecated.Use attributes()Description copied from interface:AttributeContainerFind a String Attribute by name (ignore case), return the String value of the Attribute.- Specified by:
findAttributeStringin interfaceAttributeContainer- Returns:
- the attribute value, or defaultValue if not found
-
findAttributeDouble
@Deprecated public double findAttributeDouble(String attName, double defaultValue)
Deprecated.Use attributes()Description copied from interface:AttributeContainerFind a Numeric Attribute by name (ignore case), return the double value of the Attribute.- Specified by:
findAttributeDoublein interfaceAttributeContainer- Returns:
- the attribute value, or defaultValue if not found
-
findAttributeInteger
@Deprecated public int findAttributeInteger(String attName, int defaultValue)
Deprecated.Use attributes()Description copied from interface:AttributeContainerFind a Numeric Attribute by name (ignore case), return the integer value of the Attribute.- Specified by:
findAttributeIntegerin interfaceAttributeContainer- Returns:
- the attribute value, or defaultValue if not found
-
getName
public String getName()
Description copied from interface:AttributeContainerGet the (optional) name of the AttributeContainer.- Specified by:
getNamein interfaceAttributeContainer
-
remove
public boolean remove(Attribute a)
Description copied from interface:AttributeContainerRemove an Attribute : uses the attribute hashCode to find it.- Specified by:
removein interfaceAttributeContainer- Parameters:
a- remove this attribute- Returns:
- true if was found and removed
-
removeAttribute
public boolean removeAttribute(String attName)
Description copied from interface:AttributeContainerRemove an Attribute by name.- Specified by:
removeAttributein interfaceAttributeContainer- Parameters:
attName- if exists, remove this attribute- Returns:
- true if was found and removed
-
removeAttributeIgnoreCase
public boolean removeAttributeIgnoreCase(String attName)
Description copied from interface:AttributeContainerRemove an Attribute by name, ignoring case- Specified by:
removeAttributeIgnoreCasein interfaceAttributeContainer- Parameters:
attName- if exists, remove this attribute- Returns:
- true if was found and removed
-
addAll
public void addAll(Iterable<Attribute> atts)
Description copied from interface:AttributeContainerAdd all; replace old if has same name- Specified by:
addAllin interfaceAttributeContainer
-
addAttribute
public Attribute addAttribute(Attribute att)
Description copied from interface:AttributeContainerAdd new or replace old if has same name- Specified by:
addAttributein interfaceAttributeContainer- Parameters:
att- add this Attribute- Returns:
- the added attribute
-
-