Class ChoiceGeometryTypeImpl

    • Field Detail

      • types

        protected Class[] types
    • Constructor Detail

      • ChoiceGeometryTypeImpl

        public ChoiceGeometryTypeImpl​(Name name,
                                      Class[] types,
                                      Class defaultType,
                                      boolean nillable,
                                      int min,
                                      int max,
                                      Object defaultValue,
                                      CoordinateReferenceSystem crs,
                                      List<Filter> filter)
    • Method Detail

      • convert

        public Object convert​(Object obj)
      • getChoices

        public abstract Class<?>[] getChoices()
        Gets the choices
        Returns:
        the potential types
      • getChoices

        public Class[] getChoices()
      • getDefaultValue

        public Object getDefaultValue()
        Description copied from interface: AttributeDescriptor
        The default value for the attribute.

        This value is used when an attribute is created and no value for it is specified.

        This value may be null. If it is non-null it should be an instance of of the class specified by getType().getBinding().

        Specified by:
        getDefaultValue in interface AttributeDescriptor
      • getLocalName

        public String getLocalName()
        Description copied from interface: AttributeDescriptor
        The local name for this AttributeDescriptor. Specifically this returns getName().getLocalPart().
        Specified by:
        getLocalName in interface AttributeDescriptor
        Returns:
        The local name for this attribute descriptor.
      • getMaxOccurs

        public int getMaxOccurs()
        Description copied from interface: PropertyDescriptor
        The maximum number of occurrences of the property within its containing entity.

        This value is a positive integer. A value of -1 means that the max number of occurrences is unbounded.

        Specified by:
        getMaxOccurs in interface PropertyDescriptor
        Returns:
        An integer >= 0, or -1.
      • getMinOccurs

        public int getMinOccurs()
        Description copied from interface: PropertyDescriptor
        The minimum number of occurrences of the property within its containing entity.

        This value is always an integer greater than or equal to zero.

        Specified by:
        getMinOccurs in interface PropertyDescriptor
        Returns:
        An integer >= 0
      • isNillable

        public boolean isNillable()
        Description copied from interface: PropertyDescriptor
        Flag indicating if null is an allowable value for the property.
        Specified by:
        isNillable in interface PropertyDescriptor
        Returns:
        true if the property is allowed to be null, otherwise false.