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 void
addAll(Iterable<Attribute> atts)
Add all; replace old if has same nameAttribute
addAttribute(Attribute att)
Add new or replace old if has same nameAttributeContainer
attributes()
The attributes contained by this CoverageTransform.Attribute
findAttribute(String name)
Deprecated.Use attributes()double
findAttributeDouble(String attName, double defaultValue)
Deprecated.Use attributes()Attribute
findAttributeIgnoreCase(String name)
Deprecated.Use attributes()int
findAttributeInteger(String attName, int defaultValue)
Deprecated.Use attributes()String
findAttributeString(String attName, String defaultValue)
Deprecated.Use attributes()List<Attribute>
getAttributes()
Deprecated.Use attributes()String
getName()
Get the (optional) name of the AttributeContainer.ProjectionImpl
getProjection()
boolean
isEmpty()
Deprecated.Use attributes()boolean
isHoriz()
boolean
remove(Attribute a)
Remove an Attribute : uses the attribute hashCode to find it.boolean
removeAttribute(String attName)
Remove an Attribute by name.boolean
removeAttributeIgnoreCase(String attName)
Remove an Attribute by name, ignoring caseString
toString()
void
toString(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:AttributeContainer
Returns immutable list of attributes.- Specified by:
getAttributes
in interfaceAttributeContainer
-
isEmpty
public boolean isEmpty()
Deprecated.Use attributes()Description copied from interface:AttributeContainer
True is there are no attributes in the container.- Specified by:
isEmpty
in interfaceAttributeContainer
-
findAttribute
@Deprecated public Attribute findAttribute(String name)
Deprecated.Use attributes()Description copied from interface:AttributeContainer
Find an Attribute by exact match on name.- Specified by:
findAttribute
in interfaceAttributeContainer
-
findAttributeIgnoreCase
@Deprecated public Attribute findAttributeIgnoreCase(String name)
Deprecated.Use attributes()Description copied from interface:AttributeContainer
Find an Attribute by name, first doing an exact match, then ignoring case.- Specified by:
findAttributeIgnoreCase
in interfaceAttributeContainer
-
findAttributeString
@Deprecated public String findAttributeString(String attName, String defaultValue)
Deprecated.Use attributes()Description copied from interface:AttributeContainer
Find a String Attribute by name (ignore case), return the String value of the Attribute.- Specified by:
findAttributeString
in 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:AttributeContainer
Find a Numeric Attribute by name (ignore case), return the double value of the Attribute.- Specified by:
findAttributeDouble
in 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:AttributeContainer
Find a Numeric Attribute by name (ignore case), return the integer value of the Attribute.- Specified by:
findAttributeInteger
in interfaceAttributeContainer
- Returns:
- the attribute value, or defaultValue if not found
-
getName
public String getName()
Description copied from interface:AttributeContainer
Get the (optional) name of the AttributeContainer.- Specified by:
getName
in interfaceAttributeContainer
-
remove
public boolean remove(Attribute a)
Description copied from interface:AttributeContainer
Remove an Attribute : uses the attribute hashCode to find it.- Specified by:
remove
in interfaceAttributeContainer
- Parameters:
a
- remove this attribute- Returns:
- true if was found and removed
-
removeAttribute
public boolean removeAttribute(String attName)
Description copied from interface:AttributeContainer
Remove an Attribute by name.- Specified by:
removeAttribute
in 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:AttributeContainer
Remove an Attribute by name, ignoring case- Specified by:
removeAttributeIgnoreCase
in 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:AttributeContainer
Add all; replace old if has same name- Specified by:
addAll
in interfaceAttributeContainer
-
addAttribute
public Attribute addAttribute(Attribute att)
Description copied from interface:AttributeContainer
Add new or replace old if has same name- Specified by:
addAttribute
in interfaceAttributeContainer
- Parameters:
att
- add this Attribute- Returns:
- the added attribute
-
-