/[schmitzm]/trunk/src/skrueger/geotools/AttributeMetadataMap.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/AttributeMetadataMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 769 by alfonx, Sun Mar 21 11:02:34 2010 UTC revision 772 by alfonx, Sun Mar 21 14:05:26 2010 UTC
# Line 11  import org.geotools.feature.NameImpl; Line 11  import org.geotools.feature.NameImpl;
11  import org.opengis.feature.type.Name;  import org.opengis.feature.type.Name;
12    
13  import skrueger.AbstractAttributeMetadata;  import skrueger.AbstractAttributeMetadata;
14  import skrueger.AttributeMetadata;  import skrueger.AttributeMetadataInterface;
15  import skrueger.QualityQuantizable;  import skrueger.QualityQuantizable;
16  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
17    
# Line 22  import skrueger.i8n.Translation; Line 22  import skrueger.i8n.Translation;
22   * The {@link #get(Name)} and {@link #get(String)} methods will never return   * The {@link #get(Name)} and {@link #get(String)} methods will never return
23   * <code>null</code>, but rather create a default {@link AMD_IMPL} on-the-fly.   * <code>null</code>, but rather create a default {@link AMD_IMPL} on-the-fly.
24   */   */
25  public abstract class AttributeMetadataMap<AMD_IMPL extends AttributeMetadata>  public abstract class AttributeMetadataMap<AMD_IMPL extends AttributeMetadataInterface>
26                  extends TreeMap<Name, AMD_IMPL> implements                  extends TreeMap<NameImpl, AMD_IMPL> implements
27                  Copyable<AttributeMetadataMap>, QualityQuantizable {                  Copyable<AttributeMetadataMap>, QualityQuantizable {
28    
29          private static final long serialVersionUID = 4936966916517396063L;          private static final long serialVersionUID = 4936966916517396063L;
# Line 71  public abstract class AttributeMetadataM Line 71  public abstract class AttributeMetadataM
71           * {@link Copyable} interface.           * {@link Copyable} interface.
72           */           */
73          @Override          @Override
74          public AttributeMetadataMap<? extends AttributeMetadata> copyTo(AttributeMetadataMap amdMap) {          public AttributeMetadataMap<? extends AttributeMetadataInterface> copyTo(AttributeMetadataMap amdMap) {
75    
76                  amdMap.clear();                  amdMap.clear();
77    
78                  for (final Name key : keySet()) {                  for (final NameImpl key : keySet()) {
79                          final AMD_IMPL AMD_IMPL = get(key);                          final AMD_IMPL AMD_IMPL = get(key);
80                          amdMap.put(key, AMD_IMPL.copy());                          amdMap.put(key, AMD_IMPL.copy());
81                  }                  }
# Line 83  public abstract class AttributeMetadataM Line 83  public abstract class AttributeMetadataM
83          }          }
84    
85          /**          /**
86           * Returns the {@link AMD_IMPL} for a given {@link Name}. May return           * Returns the {@link AMD_IMPL} for a given {@link NameImpl}. May return
87           * <code>null</code> or create a default {@link AttributeMetadata} depending           * <code>null</code> or create a default {@link AttributeMetadataInterface} depending
88           * on whether this method is overwritten. fly.           * on whether this method is overwritten. fly.
89           */           */
90          public AMD_IMPL get(final Name name) {          public AMD_IMPL get(final NameImpl name) {
91                  return super.get(name);                  return super.get(name);
92          }          }
93    

Legend:
Removed from v.769  
changed lines
  Added in v.772

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26