class JsonCnd {

    static String qValueString(final @NotNull QValue qValue,
                               final @NotNull NamePathResolver resolver) throws RepositoryException {
        switch (qValue.getType()) {
            case PropertyType.NAME:
                return resolver.getJCRName(qValue.getName());
            case PropertyType.PATH:
                return resolver.getJCRPath(qValue.getPath());
            default:
                return qValue.getString();
        }
    }

    private  JsonCnd();

}