Package com.bazaarvoice.commons.data.model.json.schema

Examples of com.bazaarvoice.commons.data.model.json.schema.JSONSchemaNamedProperty


        }

        @Override
        public JSONSchemaNamedProperty fromJSONObject(JSONObject jsonObject)
                throws JSONException {
            return new JSONSchemaNamedProperty().valueSchema(JSONSchemaMarshaller.this.fromJSONObject(jsonObject));
        }
View Full Code Here


        if (parentType == null) {
            return this;
        }

        for (final JSONSchemaNamedProperty parentNamedProperty : parentType._namedProperties.values()) {
            JSONSchemaNamedProperty namedProperty = _namedProperties.get(parentNamedProperty.getName());
            if (namedProperty != null) {
                namedProperty.merge(parentNamedProperty);
            } else {
                addNamedProperty(parentNamedProperty.clone());
            }
        }
View Full Code Here

        }
    }

    @Nullable
    private JSONSchemaProperty getPropertyForKey(String key) {
        JSONSchemaNamedProperty jsonSchemaProperty = getNamedProperty(key);
        if (jsonSchemaProperty != null) {
            return jsonSchemaProperty;
        }

        for (final JSONSchemaPatternProperty jsonSchemaPatternProperty : getPatternProperties()) {
View Full Code Here

    }

    @Override
    public JSONSchemaNamedProperty fromJSONObject(JSONObject jsonObject)
            throws JSONException {
        return new JSONSchemaNamedProperty().valueSchema(_jsonSchemaMarshaller.fromJSONObject(jsonObject));
    }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.commons.data.model.json.schema.JSONSchemaNamedProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.