Create new JSON_OBJECT

This commit is contained in:
YNH Webdev
2013-09-27 10:57:40 +02:00
parent 113df6efe1
commit b6c082e1fe
21 changed files with 224 additions and 94 deletions

View File

@@ -35,10 +35,10 @@ feature -- Implementation
feature -- State
state: JSON_OBJECT
state: WSF_JSON_OBJECT
do
Result := Precursor
Result.put (create {JSON_NUMBER}.make_integer (max), "max")
Result.put_integer (max, "max")
end
feature -- Properties

View File

@@ -35,10 +35,10 @@ feature -- Implementation
feature -- State
state: JSON_OBJECT
state: WSF_JSON_OBJECT
do
Result := Precursor
Result.put (create {JSON_NUMBER}.make_integer (min), "min")
Result.put_integer (min, "min")
end
feature -- Properties

View File

@@ -40,12 +40,12 @@ feature -- Implementation
feature -- State
state: JSON_OBJECT
state: WSF_JSON_OBJECT
do
create Result.make
Result.put (create {JSON_STRING}.make_json ("WSF_REGEXP_VALIDATOR"), "name")
Result.put (create {JSON_STRING}.make_json (regexp_string), "expression")
Result.put (create {JSON_STRING}.make_json (error), "error")
Result.put_string ("WSF_REGEXP_VALIDATOR", "name")
Result.put_string (regexp_string, "expression")
Result.put_string (error, "error")
end
feature -- Properties

View File

@@ -17,12 +17,12 @@ feature {NONE} -- Initialization
feature -- Access
state: JSON_OBJECT
state: WSF_JSON_OBJECT
-- JSON state of this validator
do
create Result.make
Result.put (create {JSON_STRING}.make_json (generator), "name")
Result.put (create {JSON_STRING}.make_json (error), "error")
Result.put_string (generator, "name")
Result.put_string (error, "error")
end
is_valid (input: G): BOOLEAN