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 |
|
|
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<NameImpl, AMD_IMPL> implements |
extends TreeMap<NameImpl, AMD_IMPL> implements |
27 |
Copyable<AttributeMetadataMap>, QualityQuantizable { |
Copyable<AttributeMetadataMap>, QualityQuantizable { |
28 |
|
|
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 |
|
|
84 |
|
|
85 |
/** |
/** |
86 |
* Returns the {@link AMD_IMPL} for a given {@link NameImpl}. 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 NameImpl name) { |
public AMD_IMPL get(final NameImpl name) { |