Class ListConstraint

    • Constructor Detail

      • ListConstraint

        public ListConstraint​(int minOccurs,
                              int maxOccurs,
                              java.util.List<java.lang.String> defaultValues)
        Initializes in the case the parameter is a list.
      • ListConstraint

        public ListConstraint​(int minOccurs,
                              int maxOccurs,
                              java.util.Set<PredefinedValue> defaultValues)
        Initializes in the case the parameter is a list.
      • ListConstraint

        public ListConstraint​(java.util.Set<PredefinedValue> possibleValues,
                              java.util.Set<PredefinedValue> defaultValues)
        Initializes in the case the parameter is an enumeration type.
        Parameters:
        possibleValues - All possible enumeration values.
        defaultValues - The selected values on the UI.
        Since:
        1.4.0
      • ListConstraint

        public ListConstraint​(int minOccurs,
                              int maxOccurs,
                              java.util.Set<PredefinedValue> possibleValues,
                              java.util.Set<PredefinedValue> defaultValues)
        Initializes in the case the parameter is an enumeration type and is multiple-occurrenced.
        Parameters:
        minOccurs - The minimum occurrence number.
        maxOccurs - The maximum occurrence number.
        possibleValues - All possible enumeration values.
        defaultValues - The selected values on the user interface.
        Since:
        1.4.0
    • Method Detail

      • getMinOccurs

        public int getMinOccurs()
        Returns the minimum occurrence number.
      • getMaxOccurs

        public int getMaxOccurs()
        Returns the maximum occurrence number.
      • getDefaultValues

        @Deprecated
        public java.util.List<java.lang.String> getDefaultValues()
        Deprecated.
        As of v1.4.0, replaced by getDefaultPredefinedValues().
        Returns the list of the predefined default values.
      • getDefaultPredefinedValues

        public java.util.Set<PredefinedValue> getDefaultPredefinedValues()
        Returns the list of the predefined default values.
        Since:
        1.4.0
      • getPossibleValues

        public java.util.Set<PredefinedValue> getPossibleValues()
        Returns the list of possible values in case of enumeration.
        Since:
        1.4.0
      • isUnbounded

        public boolean isUnbounded()
        Returns true if getMaxOccurs() equals Integer.MAX_VALUE.
      • isEnum

        public boolean isEnum()
        Returns true in case of enumeration.
        Since:
        1.4.0
      • isList

        public boolean isList()
        Returns true if the maximum occurrence number is greater than 1.
        Since:
        1.4.0