FeatureProperty.java

  1. package de.turnertech.ows.gml;

  2. public class FeatureProperty {
  3.    
  4.     private String name;

  5.     private int minOccurs = 1;
  6.    
  7.     private int maxOccurs = 1;

  8.     private FeaturePropertyType propertyType;

  9.     public FeatureProperty() {
  10.         this(null, null);
  11.     }

  12.     public FeatureProperty(String name, FeaturePropertyType propertyType) {
  13.         this.name = name;
  14.         this.propertyType = propertyType;
  15.     }

  16.     /**
  17.      * @return the name
  18.      */
  19.     public String getName() {
  20.         return name;
  21.     }

  22.     /**
  23.      * @param name the name to set
  24.      */
  25.     public void setName(String name) {
  26.         this.name = name;
  27.     }

  28.     /**
  29.      * @return the minOccurs
  30.      */
  31.     public int getMinOccurs() {
  32.         return minOccurs;
  33.     }

  34.     /**
  35.      * @param minOccurs the minOccurs to set
  36.      */
  37.     public void setMinOccurs(int minOccurs) {
  38.         this.minOccurs = minOccurs;
  39.     }

  40.     /**
  41.      * @return the maxOccurs
  42.      */
  43.     public int getMaxOccurs() {
  44.         return maxOccurs;
  45.     }

  46.     /**
  47.      * @param maxOccurs the maxOccurs to set
  48.      */
  49.     public void setMaxOccurs(int maxOccurs) {
  50.         this.maxOccurs = maxOccurs;
  51.     }

  52.     /**
  53.      * @return the propertyType
  54.      */
  55.     public FeaturePropertyType getPropertyType() {
  56.         return propertyType;
  57.     }

  58.     /**
  59.      * @param propertyType the propertyType to set
  60.      */
  61.     public void setPropertyType(FeaturePropertyType propertyType) {
  62.         this.propertyType = propertyType;
  63.     }
  64.    
  65. }