Class AbstractField

    • Constructor Detail

      • AbstractField

        public AbstractField()
    • Method Detail

      • getTypeName

        public abstract String getTypeName()
        Description copied from interface: Field
        Returns the type name of this field.
        Specified by:
        getTypeName in interface Field
      • getValue

        public abstract String getValue()
        Description copied from interface: Field
        Returns the normalized value of this field.
        Specified by:
        getValue in interface Field
      • setValue

        public abstract void setValue​(String value)
                               throws FormException
        Description copied from interface: Field
        Set this field value from a normalized string value.
        Specified by:
        setValue in interface Field
        Throws:
        FormException - when the field is readOnly or when the string value is ill formed.
      • acceptValue

        public abstract boolean acceptValue​(String value)
        Description copied from interface: Field
        Returns true if the value isn't ill formed and this field isn't read only.
        Specified by:
        acceptValue in interface Field
      • getValue

        public abstract String getValue​(String lang)
        Description copied from interface: Field
        Returns the local string value of this field.
        Specified by:
        getValue in interface Field
      • setValue

        public abstract void setValue​(String value,
                                      String lang)
                               throws FormException
        Description copied from interface: Field
        Set this field value from a local string value.
        Specified by:
        setValue in interface Field
        Throws:
        FormException - when the field is readOnly or when the string value is ill formed.
      • acceptValue

        public abstract boolean acceptValue​(String value,
                                            String lang)
        Description copied from interface: Field
        Returns true if the local value isn't ill formed and this field isn't read only.
        Specified by:
        acceptValue in interface Field
      • getStringValue

        public abstract String getStringValue()
        Description copied from interface: Field
        Returns the normalized String value.
        Specified by:
        getStringValue in interface Field
      • setStringValue

        public abstract void setStringValue​(String value)
                                     throws FormException
        Description copied from interface: Field
        Set this field value from a normalized String value.
        Specified by:
        setStringValue in interface Field
        Throws:
        FormException - when the field is readOnly or FormException when the value is not a normalized.
      • acceptStringValue

        public abstract boolean acceptStringValue​(String value)
        Description copied from interface: Field
        Returns true if the value isn't normalized and this field isn't read only.
        Specified by:
        acceptStringValue in interface Field
      • getObjectValue

        public abstract Object getObjectValue()
        Description copied from interface: Field
        Returns the value of this field.
        Specified by:
        getObjectValue in interface Field
      • setObjectValue

        public abstract void setObjectValue​(Object value)
                                     throws FormException
        Description copied from interface: Field
        Set this field value.
        Specified by:
        setObjectValue in interface Field
        Throws:
        FormException - when the field is readOnly or when the value has a wrong type.
      • acceptObjectValue

        public abstract boolean acceptObjectValue​(Object value)
        Description copied from interface: Field
        Returns true if the value hasn't a wrong type and this field isn't read only.
        Specified by:
        acceptObjectValue in interface Field
      • isNull

        public abstract boolean isNull()
        Description copied from interface: Field
        Returns true if this field is not set.
        Specified by:
        isNull in interface Field
      • setNull

        public abstract void setNull()
                              throws FormException
        Description copied from interface: Field
        Set to null this field.
        Specified by:
        setNull in interface Field
        Throws:
        FormException - when the field is mandatory or when the field is read only.
      • getOccurrence

        public int getOccurrence()
        Specified by:
        getOccurrence in interface Field
      • setOccurrence

        public void setOccurrence​(int i)
        Specified by:
        setOccurrence in interface Field
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface Field