Interface Field

    • Method Detail

      • getTypeName

        String getTypeName()
        Returns the type name of this field.
      • getValue

        String getValue()
        Returns the normalized value of this field.
      • setValue

        void setValue​(String value)
               throws FormException
        Set this field value from a normalized string value.
        Throws:
        FormException - when the field is readOnly or when the string value is ill formed.
      • acceptValue

        boolean acceptValue​(String value)
        Returns true if the value isn't ill formed and this field isn't read only.
      • getValue

        String getValue​(String lang)
        Returns the local string value of this field.
      • setValue

        void setValue​(String value,
                      String lang)
               throws FormException
        Set this field value from a local string value.
        Throws:
        FormException - when the field is readOnly or when the string value is ill formed.
      • acceptValue

        boolean acceptValue​(String value,
                            String lang)
        Returns true if the local value isn't ill formed and this field isn't read only.
      • getStringValue

        String getStringValue()
        Returns the normalized String value.
      • setStringValue

        void setStringValue​(String value)
                     throws FormException
        Set this field value from a normalized String value.
        Throws:
        FormException - when the field is readOnly or FormException when the value is not a normalized.
      • acceptStringValue

        boolean acceptStringValue​(String value)
        Returns true if the value isn't normalized and this field isn't read only.
      • getObjectValue

        Object getObjectValue()
        Returns the value of this field.
      • setObjectValue

        void setObjectValue​(Object value)
                     throws FormException
        Set this field value.
        Throws:
        FormException - when the field is readOnly or when the value has a wrong type.
      • acceptObjectValue

        boolean acceptObjectValue​(Object value)
        Returns true if the value hasn't a wrong type and this field isn't read only.
      • isNull

        boolean isNull()
        Returns true if this field is not set.
      • setNull

        void setNull()
              throws FormException
        Set to null this field.
        Throws:
        FormException - when the field is mandatory or when the field is read only.
      • getOccurrence

        int getOccurrence()
      • setOccurrence

        void setOccurrence​(int i)
      • setName

        void setName​(String name)