Lines Matching defs:Schema

138 // Contains the internal data representation of a Schema. This can either wrap
141 class Schema::InternalStorage
265 Schema::InternalStorage::InternalStorage()
268 Schema::InternalStorage::~InternalStorage() {}
271 scoped_refptr<const Schema::InternalStorage> Schema::InternalStorage::Wrap(
284 scoped_refptr<const Schema::InternalStorage>
285 Schema::InternalStorage::ParseSchema(const base::DictionaryValue& schema,
343 re2::RE2* Schema::InternalStorage::CompileRegex(
355 void Schema::InternalStorage::DetermineStorageSizes(
430 bool Schema::InternalStorage::Parse(const base::DictionaryValue& schema,
497 bool Schema::InternalStorage::ParseDictionary(
585 bool Schema::InternalStorage::ParseList(const base::DictionaryValue& schema,
598 bool Schema::InternalStorage::ParseEnum(const base::DictionaryValue& schema,
649 bool Schema::InternalStorage::ParseRangedInt(
671 bool Schema::InternalStorage::ParseStringPattern(
677 *error = "Schema pattern must be a string.";
697 bool Schema::InternalStorage::ResolveReferences(
713 Schema::Iterator::Iterator(const scoped_refptr<const InternalStorage>& storage,
719 Schema::Iterator::Iterator(const Iterator& iterator)
724 Schema::Iterator::~Iterator() {}
726 Schema::Iterator& Schema::Iterator::operator=(const Iterator& iterator) {
733 bool Schema::Iterator::IsAtEnd() const {
737 void Schema::Iterator::Advance() {
741 const char* Schema::Iterator::key() const {
745 Schema Schema::Iterator::schema() const {
746 return Schema(storage_, storage_->schema(it_->schema));
749 Schema::Schema() : node_(NULL) {}
751 Schema::Schema(const scoped_refptr<const InternalStorage>& storage,
755 Schema::Schema(const Schema& schema)
758 Schema::~Schema() {}
760 Schema& Schema::operator=(const Schema& schema) {
767 Schema Schema::Wrap(const SchemaData* data) {
769 return Schema(storage, storage->root_node());
772 bool Schema::Validate(const base::Value& value,
853 bool Schema::Normalize(base::Value* value,
951 Schema Schema::Parse(const std::string& content, std::string* error) {
957 return Schema();
965 return Schema();
973 return Schema();
979 return Schema();
980 return Schema(storage, storage->root_node());
983 base::Value::Type Schema::type() const {
988 Schema::Iterator Schema::GetPropertiesIterator() const {
1002 Schema Schema::GetKnownProperty(const std::string& key) const {
1010 return Schema(storage_, storage_->schema(it->schema));
1011 return Schema();
1014 Schema Schema::GetAdditionalProperties() const {
1019 return Schema();
1020 return Schema(storage_, storage_->schema(node->additional));
1023 SchemaList Schema::GetPatternProperties(const std::string& key) const {
1033 Schema(storage_, storage_->schema(it->schema)));
1039 Schema Schema::GetProperty(const std::string& key) const {
1040 Schema schema = GetKnownProperty(key);
1046 SchemaList Schema::GetMatchingProperties(const std::string& key) const {
1049 Schema known_property = GetKnownProperty(key);
1058 Schema additional_property = GetAdditionalProperties();
1066 Schema Schema::GetItems() const {
1070 return Schema();
1071 return Schema(storage_, storage_->schema(node_->extra));
1074 bool Schema::ValidateIntegerRestriction(int index, int value) const {
1090 bool Schema::ValidateStringRestriction(int index, const char* str) const {