35 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
36 |
import org.geotools.feature.NameImpl; |
import org.geotools.feature.NameImpl; |
37 |
import org.opengis.feature.type.AttributeDescriptor; |
import org.opengis.feature.type.AttributeDescriptor; |
38 |
|
import org.opengis.feature.type.Name; |
39 |
|
|
40 |
import skrueger.geotools.Copyable; |
import skrueger.geotools.Copyable; |
41 |
import skrueger.geotools.StyledLayerInterface; |
import skrueger.geotools.StyledLayerInterface; |
97 |
* @param unit |
* @param unit |
98 |
* {@link String} of the unit that the information is in |
* {@link String} of the unit that the information is in |
99 |
*/ |
*/ |
100 |
public AttributeMetadataImpl(final NameImpl name, final Boolean visible, |
public AttributeMetadataImpl(final Name name, final Boolean visible, |
101 |
final Translation title, final Translation desc, final String unit) { |
final Translation title, final Translation desc, final String unit) { |
102 |
|
|
103 |
this.setName(name); |
this.setName(name); |
119 |
* @param unit |
* @param unit |
120 |
* {@link String} of the unit that the information is in |
* {@link String} of the unit that the information is in |
121 |
*/ |
*/ |
122 |
public AttributeMetadataImpl(final NameImpl name, final Boolean visible, |
public AttributeMetadataImpl(final Name name, final Boolean visible, |
123 |
final String unit) { |
final String unit) { |
124 |
this.setName(name); |
this.setName(name); |
125 |
this.visible = visible; |
this.visible = visible; |
129 |
/** |
/** |
130 |
* Creates a new visible {@link AttributeMetadataImpl} |
* Creates a new visible {@link AttributeMetadataImpl} |
131 |
*/ |
*/ |
132 |
public AttributeMetadataImpl(final NameImpl name, final List<String> langs) { |
public AttributeMetadataImpl(final Name name, final List<String> langs) { |
133 |
this(name, true, new Translation(langs, name.getLocalPart()), |
this(name, true, new Translation(langs, name.getLocalPart()), |
134 |
new Translation(), ""); |
new Translation(), ""); |
135 |
} |
} |
137 |
/** |
/** |
138 |
* Creates a new visible {@link AttributeMetadataImpl} |
* Creates a new visible {@link AttributeMetadataImpl} |
139 |
*/ |
*/ |
140 |
public AttributeMetadataImpl(final NameImpl name, final String defaultTitle, |
public AttributeMetadataImpl(final Name name, final String defaultTitle, |
141 |
final List<String> langs) { |
final List<String> langs) { |
142 |
this(name, true, new Translation(langs, defaultTitle), |
this(name, true, new Translation(langs, defaultTitle), |
143 |
new Translation(), ""); |
new Translation(), ""); |