Lines Matching defs:Schema

26 // Option flags passed to Schema::Validate() and Schema::Normalize(), describing
28 // Note that in Schema::Normalize() allowed errors will be dropped and thus
52 class Schema;
54 typedef std::vector<Schema> SchemaList;
60 class POLICY_EXPORT Schema {
66 Schema();
69 Schema(const Schema& schema);
71 ~Schema();
73 Schema& operator=(const Schema& schema);
75 // Returns a Schema that references static data. This can be used by
78 static Schema Wrap(const internal::SchemaData* data);
80 // Parses the JSON schema in |schema| and returns a Schema that owns
81 // the internal representation. If |schema| is invalid then an invalid Schema
83 static Schema Parse(const std::string& schema, std::string* error);
85 // Returns true if this Schema is valid. Schemas returned by the methods below
136 // Returns the Schema for the current property. This Schema is always valid.
137 Schema schema() const;
152 // Returns the Schema for the property named |key|. If |key| is not a known
153 // property name then the returned Schema is not valid.
154 Schema GetKnownProperty(const std::string& key) const;
159 // Returns the Schema for additional properties. If additional properties are
160 // not allowed for this Schema then the Schema returned is not valid.
161 Schema GetAdditionalProperties() const;
163 // Returns the Schema for |key| if it is a known property, otherwise returns
164 // the Schema for additional properties.
169 Schema GetProperty(const std::string& key) const;
175 // Returns the Schema for items of an array.
178 Schema GetItems() const;
183 Schema(const scoped_refptr<const InternalStorage>& storage,