/[schmitzm]/trunk/src/skrueger/AttributeMetadataImpl.java
ViewVC logotype

Diff of /trunk/src/skrueger/AttributeMetadataImpl.java

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

revision 772 by alfonx, Sun Mar 21 14:05:26 2010 UTC revision 888 by alfonx, Thu Jun 3 10:48:43 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  package skrueger;  package skrueger;
31    
# Line 35  import java.util.List; Line 35  import java.util.List;
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;
# Line 45  import skrueger.i8n.Translation; Line 46  import skrueger.i8n.Translation;
46   * This class holds meta information about an attribute/column. This information   * This class holds meta information about an attribute/column. This information
47   * is used by {@link StyledLayerInterface} and many others.<br/>   * is used by {@link StyledLayerInterface} and many others.<br/>
48   *   *
49   * @author <a href="mailto:[email protected]">Stefan Alfons Kr&uuml;ger</a>   * @author <a href="mailto:[email protected]">Stefan Alfons Tzeggai</a>
50   */   */
51  public class AttributeMetadataImpl extends AbstractAttributeMetadata implements  public class AttributeMetadataImpl extends AbstractAttributeMetadata implements
52                  QualityQuantizable {                  QualityQuantizable {
# Line 96  public class AttributeMetadataImpl exten Line 97  public class AttributeMetadataImpl exten
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);
# Line 118  public class AttributeMetadataImpl exten Line 119  public class AttributeMetadataImpl exten
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;
# Line 128  public class AttributeMetadataImpl exten Line 129  public class AttributeMetadataImpl exten
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          }          }
# Line 136  public class AttributeMetadataImpl exten Line 137  public class AttributeMetadataImpl exten
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(), "");

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26