Add class description to validators
Rename Wsf_progresssource
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_AGENT_VALIDATOR}."
|
||||
description: "[
|
||||
Wrapper whit which a agent can be used as validator
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_DECIMAL_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which make sure that the input is a decimal number
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_EMAIL_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which make sure that the input has a the format of an valid email address
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_FILESIZE_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which make sure that the uploaded file is smaller than x bytes
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
@@ -34,7 +36,7 @@ feature -- Implementation
|
||||
do
|
||||
Result := True
|
||||
if attached input as a_input then
|
||||
Result := a_input.size < max or a_input.size = max
|
||||
Result := a_input.size < max
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_MAX_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which make sure that the input is at most x long.
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_MIN_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which make sure that the input is at least x long.
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
note
|
||||
description: "Summary description for {WSF_PHONE_NUMBER_VALIDATOR}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_PHONE_NUMBER_VALIDATOR
|
||||
|
||||
inherit
|
||||
|
||||
WSF_REGEXP_VALIDATOR
|
||||
rename
|
||||
make as make_regexp_validator
|
||||
end
|
||||
|
||||
create
|
||||
make_with_message
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make_with_message (e: STRING)
|
||||
-- Initialize with specified error message which will be displayed on validation failure
|
||||
do
|
||||
make_regexp_validator ("", e)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_REGEXP_VALIDATOR}."
|
||||
description: "[
|
||||
Validator implementation which validates the input based on a given regular expression
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_VALIDATABLE}."
|
||||
description: "[
|
||||
Defines that control can be validated.
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
note
|
||||
description: "Summary description for {WSF_VALIDATOR}."
|
||||
description: "[
|
||||
Base validation class which can be added to the WSF_FORM_ELEMENT_CONTROL
|
||||
]"
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
Reference in New Issue
Block a user